TensorDictBase.is_consolidated#
- TensorDictBase.is_consolidated()#
Checks if a TensorDict has a consolidated storage.
Returns
Falseoncememmap_()moves the leaves out of the consolidated storage, once an in-place write changes a non-tensor entry, or once a write replaces, adds or deletes an entry of an unpickled copy, which is not locked, as the consolidated storage and metadata no longer match the content.consolidate()then builds a new consolidated copy.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.