-
Notifications
You must be signed in to change notification settings - Fork 24.1k
[map] always turn on dynamo for map #152041
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
base: main
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/152041
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit bf4fbf8 with merge base 8b9c9a3 ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D73138427 |
torch/_higher_order_ops/map.py
Outdated
def map( | ||
f: Callable[[pytree.PyTree, tuple[pytree.PyTree, ...]], pytree.PyTree], | ||
xs: Union[pytree.PyTree, torch.Tensor], | ||
*args, |
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.
Use a TypeVarTuple for args?
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.
seems reasonable but tests are failing
Summary: X-link: pytorch/executorch#10409 Reland D72896450 Make map consistent with other control flow ops. After the change, map is able to support accessing closures in the map fn. Test Plan: See existing tests. Reviewed By: zou3519, angelayi Differential Revision: D73138427
This pull request was exported from Phabricator. Differential Revision: D73138427 |
Summary: Reland D72896450 Make map consistent with other control flow ops. After the change, map is able to support accessing closures in the map fn. Test Plan: See existing tests. Reviewed By: zou3519, angelayi Differential Revision: D73138427
This pull request was exported from Phabricator. Differential Revision: D73138427 |
Summary: Reland D72896450 Make map consistent with other control flow ops. After the change, map is able to support accessing closures in the map fn. Test Plan: See existing tests. Reviewed By: zou3519, angelayi Differential Revision: D73138427
This pull request was exported from Phabricator. Differential Revision: D73138427 |
Summary: Reland D72896450 Make map consistent with other control flow ops. After the change, map is able to support accessing closures in the map fn. Test Plan: See existing tests. Reviewed By: zou3519, angelayi Differential Revision: D73138427
This pull request was exported from Phabricator. Differential Revision: D73138427 |
Summary: Reland D72896450 Make map consistent with other control flow ops. After the change, map is able to support accessing closures in the map fn. Test Plan: See existing tests. Reviewed By: zou3519, angelayi Differential Revision: D73138427
This pull request was exported from Phabricator. Differential Revision: D73138427 |
Summary:
X-link: pytorch/executorch#10409
Reland D72896450
Make map consistent with other control flow ops. After the change, map is able to support accessing closures in the map fn.
Test Plan: See existing tests.
Reviewed By: zou3519
Differential Revision: D73138427
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames