-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Handle warning in torchscript #27154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[ghstack-poisoned]
Fix for #25859 Differential Revision: [D17692504](https://our.internmc.facebook.com/intern/diff/D17692504) [ghstack-poisoned]
| tracer::getTracingState()->graph->pop_scope(); | ||
| } | ||
| return result; | ||
| END_HANDLE_TH_ERRORS_PYBIND |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not the other bindings too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is the only place where arbitrary pytorch code can actually run (like functions from aten). Other entry points, to the best of my knowledge only work with jit code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if those functions ever call TORCH_WARN you still need to handle unbuffering the warnings in that case, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they call TORCH_WARN, then a cpp warning will be printed (in cerr).
Fix for #25859 Differential Revision: [D17692504](https://our.internmc.facebook.com/intern/diff/D17692504) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D17692504](https://our.internmc.facebook.com/intern/diff/D17692504) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D17692504](https://our.internmc.facebook.com/intern/diff/D17692504) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D17692504](https://our.internmc.facebook.com/intern/diff/D17692504) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D17692504](https://our.internmc.facebook.com/intern/diff/D17692504) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
ghstack-source-id: 4f84cb4 Pull Request resolved: pytorch#27154
Fix for #25859 Differential Revision: [D18249631](https://our.internmc.facebook.com/intern/diff/D18249631) [ghstack-poisoned]
Fix for #25859
Stack from ghstack:
Differential Revision: D18249631