Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Update Exception.h (pytorch#64553)
Summary: Just a small thing that's a little annoying; currently `TORCH_INTERNAL_ASSERT` generates messages like this: ``` unknown file: Failure C++ exception with description "g_outputs.count(out) > 0INTERNAL ASSERT FAILED at "../torch/csrc/jit/passes/memory_planning.cpp":481, please report a bug to PyTorch. 22 Exception raised from getManagedLiveRangesFromMemEvents at ../torch/csrc/jit/passes/memory_planning.cpp:481 (most recent call first): ``` i.e. with no space between the `#cond` checked and `INTERNAL ASSERT FAILED...` Re the `STRIP_ERROR_MESSAGES` branch: I'm not sure whether the differences are intentional or accidental? I.e. we don't pass `__FILE__` and `__VA_ARGS__` to `torchCheckFail` whereas we do to `torchInternalAssertFail`. I can reconcile the two in this PR if it's simply an omission. Pull Request resolved: pytorch#64553 Reviewed By: albanD Differential Revision: D34482923 Pulled By: swolchok fbshipit-source-id: 40b648dadb5ceea5d9038efd60771d98aa7f0b46 (cherry picked from commit 8d6f116)
- Loading branch information