← all repositories

pytorch/tensordict

A dictionary-like tensor container for PyTorch providing indexed storage, device transfer, and batch operations.

1k stars Python ML FrameworksData Tooling
tensordict
Velocity · 7d
+0.8
★ / day
Trend
steady
star history

TensorDict provides a specialized dictionary class for PyTorch tensors that supports indexing, shape operations, device casting, and batch manipulation. It also offers tensorclass, a dataclass decorator for tensors. The library enables grouped tensor operations where all contained tensors move together to devices or storage, and handles batch dimensions consistently across heterogeneous data structures commonly used in reinforcement learning and other ML workflows.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.