-
Notifications
You must be signed in to change notification settings - Fork 25.3k
upcast to most precise dtype within their category before the comparison #60536
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
`torch.isclose` does not do this bool tensors, which results in a test failure since subtraction (`abs(actual - expected)`) is not supported for them (see #58981). Since the `dtype` is already checked at this point, we can safely move the upcasting before `torch.isclose` is invoked. [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit f35bbfd (more details on the Dr. CI page and at hud.pytorch.org/pr/60536): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 Preview docs built from this PR This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
`torch.isclose` does not do this bool tensors, which results in a test failure since subtraction (`abs(actual - expected)`) is not supported for them (see #58981). Since the `dtype` is already checked at this point, we can safely move the upcasting before `torch.isclose` is invoked. ghstack-source-id: 7214ffb Pull Request resolved: #60536
…the comparison" `torch.isclose` does not do this bool tensors, which results in a test failure since subtraction (`abs(actual - expected)`) is not supported for them (see #58981). Since the `dtype` is already checked at this point, we can safely move the upcasting before `torch.isclose` is invoked. [ghstack-poisoned]
…the comparison" `torch.isclose` does not do this bool tensors, which results in a test failure since subtraction (`abs(actual - expected)`) is not supported for them (see #58981). Since the `dtype` is already checked at this point, we can safely move the upcasting before `torch.isclose` is invoked. [ghstack-poisoned]
…the comparison" `torch.isclose` does not do this bool tensors, which results in a test failure since subtraction (`abs(actual - expected)`) is not supported for them (see #58981). Since the `dtype` is already checked at this point, we can safely move the upcasting before `torch.isclose` is invoked. [ghstack-poisoned]
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.
OK
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Stack from ghstack:
msg
intorch.testing.assert_close
#60254 tests for diagnostics in callablemsg
intorch.testing.assert_close
torch.testing.assert_close
#60163 update docstring examples oftorch.testing.assert_close
torch.testing.assert_close
in case of mismatching values #60091 Improve error messages oftorch.testing.assert_close
in case of mismatching valuestorch.isclose
does not do this bool tensors, which results in a test failure since subtraction (abs(actual - expected)
) is not supported for them (see #58981). Since thedtype
is already checked at this point, we can safely move the upcasting beforetorch.isclose
is invoked.Differential Revision: D29556356