Shortcuts

is_memmap_archive

class tensordict.is_memmap_archive(path: str | pathlib.Path)

Checks whether path points to a memmap tensordict archive.

Returns True if path is a zip file containing a top-level meta.json entry (the marker of the memmap format), False otherwise. Directories always return False.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources