Shortcuts

torch.Tensor.retains_grad

Tensor.retains_grad

如果此张量是非叶张量且其gradbackward()期间被启用以填充,则为True,否则为False

优云智算