-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[pytree] Add public pytree module torch.utils.pytree
#137400
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
XuehaiPan
wants to merge
195
commits into
gh/XuehaiPan/179/base
Choose a base branch
from
gh/XuehaiPan/179/head
base: gh/XuehaiPan/179/base
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/137400
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 1d2a20f with merge base 3d7a8b7 ( 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 was referenced Oct 5, 2024
XuehaiPan
added a commit
that referenced
this pull request
Oct 5, 2024
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: ea0d2b6 Pull Request resolved: #137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 4, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 70dffcc Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 4, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 70dffcc Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 4, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 2a9442b Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 4, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 7b2eb6c Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 4, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: fd7aa7e Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 4, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: de06c1e Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 5, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 161bed0 Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 8, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: c7637c0 Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 8, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 9f4a64b Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 9, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 6bb3317 Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 10, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: c304f96 Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 10, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: e554993 Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 10, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 91078eb Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 12, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 6a03200 Pull Request resolved: pytorch#137400
XuehaiPan
added a commit
to XuehaiPan/pytorch
that referenced
this pull request
Nov 15, 2025
Populate APIs from `torch.utils._pytree` (default) or `torch.utils._cxx_pytree` to a new public module `torch.utils.pytree`. There is a environment varaible `PYTORCH_USE_CXX_PYTREE` (disabled by default) to control this. Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using `torch.utils.pytree`. ghstack-source-id: 4db13e5 Pull Request resolved: pytorch#137400
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ci-test-showlocals
Show local variables on test failures
ciflow/inductor
ciflow/trunk
Trigger trunk jobs on your pull request
module: dynamo
module: pytree
open source
release notes: dynamo
release notes: releng
release notes category
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
torch.pytree#148180torch.utils.pytree#137400tree_*functions accept both Python and C++PyTreeSpec#152624Populate APIs from
torch.utils._pytree(default) ortorch.utils._cxx_pytreeto a new public moduletorch.utils.pytree. There is an environment variablePYTORCH_USE_CXX_PYTREE(disabled by default) to control this.Since the CXX pytree is now Dynamo traceable, the users can change the underlining pytree implementation by flipping the environment variable while using
torch.utils.pytree.Resolves #65761
cc @zou3519 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @rec