-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Fix segfault while real and imaginary attributes are set to a number #73867
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]
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 60c7724 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
| auto& self_ = THPVariable_Unpack(self); | ||
| auto& real_ = THPVariable_Unpack(real); | ||
| auto self_real = at::real(self_); | ||
| auto real_ = valueToTensor(self_real.options(), real, self_real.device()); |
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.
will this materialize the value tensor to the shape or real?
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.
no it just creates a zero dimensional tensor
…o a number" Fixes #72947 [ghstack-poisoned]
|
@anjali411 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…o a number" Fixes #72947 Differential Revision: [D34695956](https://our.internmc.facebook.com/intern/diff/D34695956) [ghstack-poisoned]
…o a number" Fixes #72947 Differential Revision: [D34695956](https://our.internmc.facebook.com/intern/diff/D34695956) [ghstack-poisoned]
|
@anjali411 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…(#73867) Summary: Pull Request resolved: pytorch/pytorch#73867 Fixes pytorch/pytorch#72947 Test Plan: Imported from OSS Reviewed By: davidberard98 Differential Revision: D34695956 Pulled By: anjali411 fbshipit-source-id: 2f3eda272a5214335eae506bd387ce8da4d81b8c (cherry picked from commit fdb07354cac22c30aa047e65fbac9840608db811)
…(#73867) Summary: Pull Request resolved: pytorch/pytorch#73867 Fixes pytorch/pytorch#72947 Test Plan: Imported from OSS Reviewed By: davidberard98 Differential Revision: D34695956 Pulled By: anjali411 fbshipit-source-id: 2f3eda272a5214335eae506bd387ce8da4d81b8c (cherry picked from commit fdb07354cac22c30aa047e65fbac9840608db811)
Stack from ghstack:
Fixes #72947
Differential Revision: D34695956