C++-accessible Placements via pybind11 (#163030)

This makes Placement data representation available in C++ via pybind11.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/163030
Approved by: https://github.com/ezyang
This commit is contained in:
Scott Wolchok
2025-10-01 15:29:16 -07:00
committed by PyTorch MergeBot
parent 349e9e922d
commit 3e03deab6f
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",