Rate this Page
★ ★ ★ ★ ★

TensorDictBase.is_contiguous#

TensorDictBase.is_contiguous() → bool#

True if all the leaves of the tensordict, nested ones included, are contiguous.

A lazy stack and a PersistentTensorDict, which build their leaves when they are read, always return False. See contiguous().

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