TensorDictBase.memmap_refresh#
- TensorDictBase.memmap_refresh_(*, allow_pickle: bool | None = None)#
Refreshes the content of the memory-mapped tensordict if it has a
saved_path.This method will raise an exception if no path is associated with it.
- Parameters:
allow_pickle (bool, optional) – whether pickled non-tensor fields may be loaded. See
load_memmap().
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.