Rate this Page
★ ★ ★ ★ ★

TensorDictBase.__len__#

TensorDictBase.__len__() → int#

Returns the length of first dimension, if there is, otherwise 0.

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