Rate this Page
★ ★ ★ ★ ★

TensorDictBase.ndim#

property TensorDictBase.ndim: int#

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.