Shortcuts

from_h5

class tensordict.from_h5(filename, mode='r')

Creates a PersistentTensorDict from a h5 file.

This function will automatically determine the batch-size for each nested tensordict.

Parameters:
  • filename (str) – the path to the h5 file.

  • mode (str, optional) – reading mode. Defaults to "r".

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