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
, PyTorch Core Team, 2025 - The authoritative guide for all PyTorch tensor operations, including element-wise, reduction, and in-place methods.