Rate this Page

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.