Reapply "C++-accessible Placements via pybind11 (#163030)" (#164519)

This makes Placement data representation available in C++ via pybind11. Reapply with fix for internal errors.

D83788896

Pull Request resolved: https://github.com/pytorch/pytorch/pull/164519
Approved by: https://github.com/Skylion007, https://github.com/ezyang
This commit is contained in:
Scott Wolchok
2025-10-03 09:25:43 -07:00
committed by PyTorch MergeBot
parent 746fe78ecd
commit 8c0bc879b9
11 changed files with 385 additions and 88 deletions

View File

@ -913,6 +913,7 @@ libtorch_python_core_sources = [
"torch/csrc/autograd/python_torch_functions_manual.cpp",
"torch/csrc/autograd/python_variable.cpp",
"torch/csrc/autograd/python_variable_indexing.cpp",
"torch/csrc/distributed/python_placement.cpp",
"torch/csrc/dynamo/python_compiled_autograd.cpp",
"torch/csrc/dynamo/cache_entry.cpp",
"torch/csrc/dynamo/cpp_shim.cpp",