TensorDictBase.requires_grad#
- property TensorDictBase.requires_grad: bool#
Trueif any leaf of the tensordict, nested ones included, requires gradients.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.