-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Additional autograd unit tests for Python UDFs. #29041
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
Additional autograd unit tests for Python UDFs. #29041
Conversation
1) Enhanced autograd unit tests to test the torch.distributed.autograd.backward() API more thoroughly on Python UDFs. 2) Enhanced `python_error` to override `what` such that it returns an appropriate error string if we call `what()` on this error. This ensures we can propagate exceptions over the wire during RPCs (since we get the error string by calling what() on the exception) ghstack-source-id: 92972494 Differential Revision: [D18273041](https://our.internmc.facebook.com/intern/diff/D18273041/) [ghstack-poisoned]
1) Enhanced autograd unit tests to test the torch.distributed.autograd.backward() API more thoroughly on Python UDFs. 2) Enhanced `python_error` to override `what` such that it returns an appropriate error string if we call `what()` on this error. This ensures we can propagate exceptions over the wire during RPCs (since we get the error string by calling what() on the exception) ghstack-source-id: 92972494 Differential Revision: [D18273041](https://our.internmc.facebook.com/intern/diff/D18273041/) ghstack-source-id: 93087189 Pull Request resolved: #29041
|
@ezyang I'm not able to reproduce the doxygen issue locally. This is what I did and check-doxygen.sh output: |
|
This error may be sensitive to doxygen or dot version, and you may not have lined things up exactly the same way. I was reading through the CI script and it looks like we filter out similar looking warnings. So it might be acceptable to just filter this one out too. |
1) Enhanced autograd unit tests to test the torch.distributed.autograd.backward() API more thoroughly on Python UDFs. 2) Enhanced `python_error` to override `what` such that it returns an appropriate error string if we call `what()` on this error. This ensures we can propagate exceptions over the wire during RPCs (since we get the error string by calling what() on the exception) Differential Revision: [D18273041](https://our.internmc.facebook.com/intern/diff/D18273041/) [ghstack-poisoned]
Pull Request resolved: #29041 1) Enhanced autograd unit tests to test the torch.distributed.autograd.backward() API more thoroughly on Python UDFs. 2) Enhanced `python_error` to override `what` such that it returns an appropriate error string if we call `what()` on this error. This ensures we can propagate exceptions over the wire during RPCs (since we get the error string by calling what() on the exception) ghstack-source-id: 93098679 ghstack-source-id: 93098679 Differential Revision: [D18273041](https://our.internmc.facebook.com/intern/diff/D18273041/)
Followed what Alban did there and quick_checks are now passing. Could you approve this PR? Thanks! |
mrshenli
left a comment
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.
This is a retry of #28824, and the only difference is in docs/cpp/source/Doxyfile.
Lint failures on python_engine.cpp is irrelevant.
|
This pull request has been merged in e8e7d93. |
Stack from ghstack:
torch.distributed.autograd.backward() API more thoroughly on Python UDFs.
python_errorto overridewhatsuch that it returns anappropriate error string if we call
what()on this error. This ensures we canpropagate exceptions over the wire during RPCs (since we get the error string
by calling what() on the exception)
Differential Revision: D18273041