Rate this Page
★ ★ ★ ★ ★

TensorDictBase.dim#

TensorDictBase.dim() → int#

Returns the number of batch dimensions, the same as batch_dims.

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