These examples show how elaborate neural networks can be formed through module composition and convenientlymanipulated. To allow for quick and easy construction of neural networks with minimal boilerplate, PyTorchprovides a large library of performant modules within the torch.nn namespace that perform common neuralnetwork operations like pooling, convolutions, loss functions, etc.