is_memmap_archive¶
- class tensordict.is_memmap_archive(path: str | pathlib.Path)¶
Checks whether
pathpoints to a memmap tensordict archive.Returns
Trueifpathis a zip file containing a top-levelmeta.jsonentry (the marker of the memmap format),Falseotherwise. Directories always returnFalse.