Rate this Page
★ ★ ★ ★ ★

TensorDictBase.load#

TensorDictBase.load_(prefix: str | Path, *args, **kwargs)#

Loads a saved tensordict into the tensordict.

Calls load_memmap_() with the same arguments.

Deprecated since version 0.15: Use load_memmap_() instead. It will be removed in TensorDict 0.17.

Parameters:

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