Rate this Page
★ ★ ★ ★ ★

TensorDictBase.as_tensor#

TensorDictBase.as_tensor() → Self#

Converts every leaf of a tensordict to a plain torch.Tensor.

Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.