-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[functorch] fix dynamo support for functorch.grad #106610
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/106610
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 3 PendingAs of commit f4c9b27: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -194,7 +195,7 @@ def _find_torch_objects(module): | |||
if isinstance(obj, torch._ops.HigherOrderOperator): | |||
continue | |||
# We want to trace through `grad` | |||
if obj is torch.func.grad: | |||
if obj in (torch.func.grad, deprecated_func.grad): |
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.
Oh no. Can you do the same for vmap in the other PR?
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Ref: pytorch#106475 (comment) Pull Request resolved: pytorch#106610 Approved by: https://github.com/zou3519
Ref: #106475 (comment)
cc @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @aakhundov