-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Unifies OpInfo dtype tests #60157
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
Unifies OpInfo dtype tests #60157
Conversation
💊 CI failures summary and remediationsAs of commit 34c21ae (more details on the Dr. CI page and at hud.pytorch.org/pr/60157): ✅ None of the CI failures appear to be your fault 💚
❄️ 1 failure tentatively classified as flakybut reruns have not yet been triggered to confirm:
|
|
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
| if sample.output_process_fn_grad is not None: | ||
| # Checks for backward support in the same dtype | ||
| try: | ||
| result = sample.output_process_fn_grad(result) |
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.
didn't we decide that process_fn_grad is not needed here? It's needed for proper gradcheck, and then it was added for to_sparse but for the wrong reasons.
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.
Follow-up from offline discussion: it is needed for operations like slogdet that produce multiple tensors but with only support for backwarding through some (one) of them
|
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Simplifies the OpInfo dtype tests and produces nicer error messages, like: