Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Memory Snapshot][BE] Clean up record function callback scope (pytorc…
…h#130265) Summary: We can directly set the scope to at::RecordScope::USER_SCOPE for the at::RecordFunctionCallback object, rather than performing a check inside of the callback. Test Plan: Ran locally, works fine. https://www.internalfb.com/pytorch_memory_visualizer/mvai_gpu_traces/tree/gpu_snapshot/fire-aaronshi-20240704-1709-7a80b83b/0/rank-0_itrn-1503.Jul_04_17_24_02.3577.snapshot.pickle Differential Revision: D59477046 Pulled By: aaronenyeshi Pull Request resolved: pytorch#130265 Approved by: https://github.com/davidberard98
- Loading branch information