/usr/local/lib64/python3.6/site-packages/torch/include/caffe2/python
NameSizeModeActions
dlpack.h46930644editdlrm
pybind_state.h156210644editdlrm
pybind_state_dlpack.h41430644editdlrm
pybind_state_registry.h10210644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/caffe2/python/pybind_state_registry.h (1021B)
#pragma once #include #include "c10/util/Registry.h" namespace caffe2 { namespace python { namespace py = pybind11; struct PybindAddition { PybindAddition() {} PybindAddition(py::module&) {} virtual ~PybindAddition(){}; }; C10_DECLARE_REGISTRY(PybindAdditionRegistry, PybindAddition, py::module&); #define REGISTER_PYBIND_ADDITION(funcname) \ namespace { \ struct funcname##Impl : public PybindAddition { \ funcname##Impl(py::module& m) { \ funcname(m); \ } \ }; \ C10_REGISTER_CLASS(PybindAdditionRegistry, funcname##Impl, funcname##Impl); \ } } // namespace python } // namespace caffe2