torch.Tensor.requires_grad — PyTorch 1.10.1 documentation
pytorch.org › torchtorch.Tensor.requires_grad — PyTorch 1.10.0 documentation torch.Tensor.requires_grad Tensor.requires_grad Is True if gradients need to be computed for this Tensor, False otherwise. Note The fact that gradients need to be computed for a Tensor do not mean that the grad attribute will be populated, see is_leaf for more details. Next Previous