Rate this Page
★ ★ ★ ★ ★

API reference#

Each page of the API reference lists the public classes and functions of one part of tensordict, and each name has its own page. To learn how the parts fit together, start with What is TensorDict? and the user guide.

  • tensordict: containers and functions: the container classes (TensorDict, LazyStackedTensorDict, PersistentTensorDict, …), the methods that all tensordicts share, grouped by task, and the functions of the tensordict module.

  • tensorclass and non-tensor data: TensorClass, the @tensorclass decorator, and the classes that hold non-tensor data.

  • TypedTensorDict: TypedTensorDict, a tensordict with declared fields.

  • tensordict.nn: the modules of tensordict.nn, the probabilistic modules and distributions, and FX tracing.

  • Key-value stores and UCXX: the tensordicts on key-value servers (tensordict.store), and UCXX transport.

  • Utilities: the helpers and types of tensordict.utils.