requires_grad
)backward()
).grad
)torch.nn
torch.nn.Module
Base Classtorch.nn
losses)torch.optim
)torch.utils.data.Dataset
torchvision.transforms
)torch.utils.data.DataLoader
Was this section helpful?
torch.nn
- PyTorch documentation, PyTorch, 2024 - Official documentation for PyTorch's neural network module, detailing the implementation and usage of activation functions like ReLU
, Sigmoid
, and Tanh
.