Shortcuts

Define TORCH_MODULE_IMPL

Define Documentation

TORCH_MODULE_IMPL(Name, ImplType)

Defines a class Name which inherits from nn::ModuleHolder to provide a wrapper over a std::shared_ptr<ImplType>.

Impl is a type alias for ImplType which provides a way to call static method of ImplType.

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