-
Notifications
You must be signed in to change notification settings - Fork 26.3k
supporting complex with requires_grad in autodiff #74339
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
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit c0938c0 (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:
|
|
Running into this in totally separate workload cc'ing @kevinstephano |
eellison
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.
nice! test ?
Test added and verified the fix locally (shamelessly stolen from #65480) |
|
@eellison has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
oop looks like we needd a skip if not build with cuda |
|
@eellison has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
nice! thanks :) |
|
Hey @jjsjann123. |
Summary: Fixes #65480 autodiff should propagate requires_grad for complex tensors as well as float tensors. Pull Request resolved: #74339 Reviewed By: anjali411 Differential Revision: D34967622 Pulled By: eellison fbshipit-source-id: 89d23469294c0191f3a5d1c8e1df3d34acc94056 (cherry picked from commit 712f8bd)
Fixes #65480
autodiff should propagate requires_grad for complex tensors as well as float tensors.