-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Fix complex mean and reduction tests not being run #55640
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
Mean is broken for complex types, since #53218 it's now allocating the result as a real tensor which discards the imaginary component. This wasn't picked up in testing because `_test_dim_ops` tests are defined as closures inside of `_test_dim_ops` instead of as methods on the test class. The result is, they never get run. For best results, view diff with "Hide whitespace changes". [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 2557cee (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
|
Actually, I think the whitespace got messed up when the tests were split off from |
mruberry
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.
Thank you!
Summary: Pull Request resolved: pytorch#55640 Mean is broken for complex types, since pytorch#53218 it's now allocating the result as a real tensor which discards the imaginary component. This wasn't picked up in testing because `_test_dim_ops` tests are defined as closures inside of `_test_dim_ops` instead of as methods on the test class. The result is, they never get run. For best results, view diff with "Hide whitespace changes". Test Plan: Imported from OSS Reviewed By: ngimel Differential Revision: D27671127 Pulled By: mruberry fbshipit-source-id: 4a1f6fea1048919fda7339c867ee78e88f2d7bd2
Stack from ghstack:
correctionvalue andunbiasedargument #55679 std/var: Deprecate default correction valueMean is broken for complex types, since #53218 it's now allocating the result
as a real tensor which discards the imaginary component. This wasn't picked up
in testing because
_test_dim_opstests are defined as closures inside of_test_dim_opsinstead of as methods on the test class. The result is, theynever get run.
For best results, view diff with "Hide whitespace changes".
Differential Revision: D27671127