pytorch/torch/csrc/distributed/python_placement.h
Scott Wolchok 8c0bc879b9 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
2025-10-06 23:19:14 +00:00

8 lines
168 B
C++

#pragma once
#include <torch/csrc/utils/python_stub.h>
namespace torch::distributed {
void initPlacementBindings(PyObject* module);
} // namespace torch::distributed