torch.Tensor.retain\_grad ========================= .. currentmodule:: torch .. automethod:: Tensor.retain_grad