torch.autograd — PyTorch 1.10.1 documentation
pytorch.org › docs › 1PyTorch Governance | Persons of Interest. Docs >. Module code>. torch>. torch.autograd. Shortcuts. Source code for torch.autograd. """``torch.autograd`` provides classes and functions implementing automaticdifferentiation of arbitrary scalar valued functions. It requires minimalchanges to the existing code - you only need to declare :class:`Tensor` sfor which gradients should be computed with the ``requires_grad=True`` keyword.