Rate this Page

Template Function torch::python::detail::bind_cpp_module_wrapper#

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 of torch.nn.Module, and passes it the user-provided C++ module to which it delegates all calls.