Shortcuts

Template Function torch::nn::operator<<(std::ostream&, const nn::ModuleHolder<ModuleType>&)

Function Documentation

template<typename ModuleType>
std::ostream &torch::nn::operator<<(std::ostream &stream, const nn::ModuleHolder<ModuleType> &module)

Pretty prints the given Module into the ostream.

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