Shortcuts

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.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources