8000 [pytree] simplify public API exposition with `__module__` by XuehaiPan · Pull Request #148328 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[pytree] simplify public API exposition with __module__ #148328

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 81 commits into
base: gh/XuehaiPan/253/base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
5869417
Update
XuehaiPan Mar 3, 2025
c45807e
Update
XuehaiPan Mar 3, 2025
ae1f74d
Update
XuehaiPan Mar 3, 2025
15f6dfa
Update
XuehaiPan Mar 3, 2025
c76deaa
Update
XuehaiPan Mar 3, 2025
085e755
Update
XuehaiPan Mar 3, 2025
f1b7f65
Update
XuehaiPan Mar 3, 2025
322b9e6
Update
XuehaiPan Mar 3, 2025
a5c44e4
Update
XuehaiPan Mar 3, 2025
715d6bf
Update
XuehaiPan Mar 3, 2025
cfebbe1
Update
XuehaiPan Mar 3, 2025
a473599
Update
XuehaiPan Mar 3, 2025
b6f8a95
Update
XuehaiPan Mar 3, 2025
67cd29c
Update
XuehaiPan Mar 4, 2025
e14940d
Update
XuehaiPan Mar 4, 2025
1eb9443
Update
XuehaiPan Mar 4, 2025
4c10ac5
Update
XuehaiPan Mar 4, 2025
57bd9bc
Update
XuehaiPan Mar 4, 2025
8ff9e5c
Update
XuehaiPan Mar 4, 2025
8ba9e80
Update
XuehaiPan Mar 4, 2025
b34ea1d
Update
XuehaiPan Mar 4, 2025
9d095c8
Update
XuehaiPan Mar 4, 2025
cd3b63d
Update
XuehaiPan Mar 4, 2025
bd50bf5
Update
XuehaiPan Mar 4, 2025
2f55ede
Update
XuehaiPan Mar 4, 2025
7880252
Update
XuehaiPan Mar 5, 2025
64c9bf6
Update
XuehaiPan Mar 5, 2025
ad363d1
Update
XuehaiPan Mar 5, 2025
fb42877
Update
XuehaiPan Mar 5, 2025
6eff9de
Update
XuehaiPan Mar 5, 2025
0757d9d
Update
XuehaiPan Mar 5, 2025
fdd8622
Update
XuehaiPan Mar 5, 2025
376677f
Update
XuehaiPan Mar 5, 2025
e89cb35
Update
XuehaiPan Mar 5, 2025
96f6b30
Update
XuehaiPan Mar 6, 2025
0046802
Update
XuehaiPan Mar 6, 2025
51f91d7
Update
XuehaiPan Mar 6, 2025
176e34a
Update
XuehaiPan Mar 7, 2025
877a79e
Update
XuehaiPan Mar 12, 2025
8e0f02a
Update
XuehaiPan Mar 14, 2025
63874e5
Update
XuehaiPan Mar 20, 2025
e053358
Update
XuehaiPan Apr 1, 2025
8400373
Update
XuehaiPan Apr 3, 2025
ec05c85
Update
XuehaiPan Apr 3, 2025
10815ff
Update
XuehaiPan Apr 3, 2025
e2843b9
Update
XuehaiPan Apr 5, 2025
3fa91e0
Update
XuehaiPan Apr 7, 2025
874a8c1
Update
XuehaiPan Apr 10, 2025
b380eee
Update
XuehaiPan Apr 11, 2025
92d4ac0
Update
XuehaiPan Apr 11, 2025
22feaf3
Update
XuehaiPan Apr 11, 2025
7f7de4f
Update
XuehaiPan Apr 11, 2025
80b28bb
Update
XuehaiPan Apr 15, 2025
c562fb9
Update
XuehaiPan Apr 15, 2025
00d35d2
Update
XuehaiPan Apr 15, 2025
22166a8
Update
XuehaiPan Apr 15, 2025
f7ca766
Update
XuehaiPan Apr 23, 2025
ca4a9b4
Update
XuehaiPan Apr 26, 2025
a5ecb1f
Update
XuehaiPan May 1, 2025
c86c47f
Update
XuehaiPan May 1, 2025
5ece761
Update
XuehaiPan May 1, 2025
eb075c0
Update
XuehaiPan May 1, 2025
66ef529
Update
XuehaiPan May 2, 2025
11501ce
Update
XuehaiPan May 2, 2025
ece5408
Update
XuehaiPan May 2, 2025
4eaaa56
Update
XuehaiPan May 2, 2025
0c1cda4
Update
XuehaiPan May 3, 2025
e45acce
Update
XuehaiPan May 8, 2025
c06df34
Update
XuehaiPan May 14, 2025
7e34dae
Update
XuehaiPan May 16, 2025
17f2f99
Update
XuehaiPan May 28, 2025
6aafce3
Update
XuehaiPan May 31, 2025
84e3de9
Update
XuehaiPan Jun 6, 2025
9743e29
Update
XuehaiPan Jun 18, 2025
1841fda
Update
XuehaiPan Jun 23, 2025
ab06a3a
Update
XuehaiPan Jun 27, 2025
00bf718
Update
XuehaiPan Jun 28, 2025
26cff99
Update
XuehaiPan Jul 3, 2025
72fa391
Update
XuehaiPan Jul 9, 2025
80a7d88
Update
XuehaiPan Jul 17, 2025
99edc1d
Update
XuehaiPan Jul 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
XuehaiPan committed Mar 3, 2025
commit 15f6dfaf95c42c70a557b1889c58ca3e681738fc
2 changes: 1 addition & 1 deletion torch/utils/pytree/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"Or set the environment variable `PYTORCH_USE_CXX_PYTREE=0`."
)
else:
cxx = _sys.modules.get("torch.utils._cxx_pytree")
cxx = _sys.modules.get("torch.utils._cxx_pytree") # type: ignore[assignment]


_sys.modules[f"{__name__}.python"] = python
Expand Down
8 changes: 8 additions & 0 deletions torch/utils/pytree/cxx.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys

import torch.utils._cxx_pytree


sys.modules[__name__] = torch.utils._cxx_pytree

del sys, torch
8 changes: 8 additions & 0 deletions torch/utils/pytree/python.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys

import torch.utils._pytree


sys.modules[__name__] = torch.utils._pytree

del sys, torch
Loading
0