forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyTorch] Avoid heap allocations in inferUnsqueezeGeometry (pytorch#4…
…9497) Summary: Pull Request resolved: pytorch#49497 Noticed this thing spending relatively most of its time in malloc in perf. Optimize for typical tensor sizes. ghstack-source-id: 119318388 Test Plan: perf profile internal benchmark; saw inferUnsqueezeGeometry go from 0.30% exclusive 0.47% inclusive to 0.11% exclusive 0.16% inclusive. Differential Revision: D25596549 fbshipit-source-id: 3bbd2031645a4b9fe6f49a77d41db46826d0f632
- Loading branch information
1 parent
093aca0
commit a272a7e
Showing
1 changed file
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters