Compare commits

...

11 Commits

Author SHA1 Message Date
49c54cf9d8 Update
[ghstack-poisoned]
2025-10-21 22:49:07 +08:00
0068f5a3a1 Update (base update)
[ghstack-poisoned]
2025-10-21 22:49:07 +08:00
48a61df33e Update
[ghstack-poisoned]
2025-10-19 18:23:49 +08:00
ffafebc811 Update (base update)
[ghstack-poisoned]
2025-10-19 18:23:49 +08:00
3f13b985b5 Update
[ghstack-poisoned]
2025-10-14 23:30:13 +08:00
ff6d71c992 Update (base update)
[ghstack-poisoned]
2025-10-14 23:30:13 +08:00
859837be5e Update
[ghstack-poisoned]
2025-10-13 13:49:42 +08:00
3e4dbb4c2b Update
[ghstack-poisoned]
2025-10-11 23:50:56 +08:00
dfba4bb411 Update
[ghstack-poisoned]
2025-10-11 23:43:28 +08:00
df8c72ffe8 Update (base update)
[ghstack-poisoned]
2025-10-11 21:52:29 +08:00
5d88db41c4 Update
[ghstack-poisoned]
2025-10-11 21:52:29 +08:00
4 changed files with 16 additions and 6 deletions

View File

@ -153,9 +153,9 @@ opt-einsum==3.3
#Pinned versions: 3.3
#test that import: test_linalg.py
optree==0.13.0
optree==0.17.0
#Description: A library for tree manipulation
#Pinned versions: 0.13.0
#Pinned versions: 0.17.0
#test that import: test_vmap.py, test_aotdispatch.py, test_dynamic_shapes.py,
#test_pytree.py, test_ops.py, test_control_flow.py, test_modules.py,
#common_utils.py, test_eager_transforms.py, test_python_dispatch.py,

View File

@ -204,7 +204,7 @@ jobs:
run: |
pushd "${PYTORCH_FINAL_PACKAGE_DIR}"
# shellcheck disable=SC2046,SC2102
python3 -mpip install $(echo *.whl)[opt-einsum,optree] optree==0.13.0
python3 -mpip install $(echo *.whl)[opt-einsum,optree] optree==0.17.0
popd
.ci/pytorch/win-test.sh

View File

@ -171,7 +171,7 @@ init_command = [
'junitparser==2.1.1',
'rich==14.1.0',
'pyyaml==6.0.2',
'optree==0.13.0',
'optree==0.17.0',
'dataclasses-json==0.6.7',
'pandas==2.2.3',
]

View File

@ -430,14 +430,24 @@ from user code:
fn(torch.randn(4))
self.assertEqual(len(counters["graph_break"]), 1)
first_graph_break = next(iter(counters["graph_break"].keys()))
# Pybind11 improperly sets the __qualname__ attribute on functions and methods
# See https://github.com/pybind/pybind11/issues/5774 and https://github.com/pybind/pybind11/issues/2059
# Example prefix: pybind11_detail_function_record_v1_system_libstdcpp_gxx_abi_1xxx_use_cxx11_abi_1
first_graph_break = re.sub(
r"pybind11_detail_function_record\w*", # remove abi/platform specific suffix
"pybind11_detail_function_record",
first_graph_break,
)
self.assertExpectedInline(
first_graph_break,
"""\
Attempted to call function marked as skipped
Explanation: Dynamo cannot trace optree C/C++ function optree._C.PyCapsule.flatten_with_path.
Explanation: Dynamo cannot trace optree C/C++ function optree._C.pybind11_detail_function_record.flatten_with_path.
Hint: Consider using torch.utils._pytree - https://github.com/pytorch/pytorch/blob/main/torch/utils/_pytree.py
Developer debug context: module: optree._C, qualname: PyCapsule.flatten_with_path, skip reason: <missing reason>
Developer debug context: module: optree._C, qualname: pybind11_detail_function_record.flatten_with_path, skip reason: <missing reason>
For more details about this graph break, please visit: https://meta-pytorch.github.io/compile-graph-break-site/gb/gb0007.html""",
)