Template Function torch::python::detail::bind_cpp_module_wrapper¶
Defined in File python.h
Function Documentation¶
-
template<typename ModuleType>
void torch::python::detail::bind_cpp_module_wrapper(const py::module &module, PyModuleClass<ModuleType> cpp_class, const char *name)¶ Dynamically creates a subclass of
torch.nn.cpp.ModuleWrapper
that is also a subclass oftorch.nn.Module
, and passes it the user-provided C++ module to which it delegates all calls.