Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ydwu4
Copy link
Contributor

@ydwu4 ydwu4 commented Apr 23, 2025

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

Copy link

pytorch-bot bot commented Apr 23, 2025

🔗 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 (image):

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.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73138427

@ydwu4 ydwu4 added the topic: not user facing topic category label Apr 23, 2025
@ydwu4 ydwu4 changed the title [map] always turn on dynamo for map (#150962) [map] always turn on dynamo for map Apr 23, 2025
@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 23, 2025
Skylion007
Skylion007 previously approved these changes Apr 25, 2025
def map(
f: Callable[[pytree.PyTree, tuple[pytree.PyTree, ...]], pytree.PyTree],
xs: Union[pytree.PyTree, torch.Tensor],
*args,
Copy link
Collaborator

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?

@Skylion007 Skylion007 dismissed their stale review April 25, 2025 13:56

Whoops only meant to comment

Copy link
Contributor

@zou3519 zou3519 left a 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

@ydwu4 ydwu4 force-pushed the export-D73138427 branch from 813d4d8 to 1deed3d Compare May 2, 2025 21:59
pytorch-bot bot pushed a commit that referenced this pull request May 2, 2025
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
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73138427

ydwu4 added a commit to ydwu4/pytorch that referenced this pull request May 2, 2025
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
@ydwu4 ydwu4 force-pushed the export-D73138427 branch from 1deed3d to cbbd611 Compare May 2, 2025 22:48
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73138427

ydwu4 added a commit to ydwu4/pytorch that referenced this pull request May 2, 2025
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
@ydwu4 ydwu4 force-pushed the export-D73138427 branch from cbbd611 to 110380d Compare May 2, 2025 23:32
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73138427

@ydwu4 ydwu4 force-pushed the export-D73138427 branch from 110380d to 6b698f3 Compare May 5, 2025 20:10
pytorch-bot bot pushed a commit that referenced this pull request May 5, 2025
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
@facebook-github-bot
Copy link
Contributor

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
@ydwu4 ydwu4 force-pushed the export-D73138427 branch from 6b698f3 to bf4fbf8 Compare May 7, 2025 16:49
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73138427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants