    def backward(self, loss):
        """Computes the sum of gradients of the given tensor w.r.t. graph leaves."""
        loss.backward()
Computes the sum of gradients of the given tensor w.r.t. graph leaves.
fairseq/optim/fairseq_optimizer.py