-
Notifications
You must be signed in to change notification settings - Fork 21.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyTorch] Make TORCH_CHECK less likely to interfere with inlining (#4…
…9263) Summary: Pull Request resolved: #49263 Now it is smaller and calls to an out-of-line function in case of failure. ghstack-source-id: 118480531 Test Plan: 1) Inspect perf profile of internal benchmark, much less time spent in (for example) `c10::impl::getDeviceImpl`, which calls TORCH_CHECK and should be inlined 2) Internal benchmarks Reviewed By: smessmer Differential Revision: D25481308 fbshipit-source-id: 0121ada779ca2518ca717f75920420957b3bb1aa
- Loading branch information
1 parent
eb051af
commit 7d406b4
Showing
2 changed files
with
40 additions
and
14 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
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