Ross ROSS = Recommend OSS · open-source software intelligence for agents

pytorch/tensordict

TensorDict is a pytorch dedicated tensor container. observed · 2026-09-03

github.com/pytorch/tensordict · Python · MIT (permissive) observed · 2026-09-03

Health v2 · maintenance only

99/100

  • Activity 100
  • Release rhythm 98
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 12.5
  • age_days: 1414
  • days_rel: 19
  • days_push: 0
  • n_releases_24m: 21

Full methodology

Adoption not part of the score

1036 stars · 117 forks observed · 2026-09-03

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

TensorDict is a PyTorch library providing a batched, nested dict-like tensor container where operations like slicing, stacking, and arithmetic propagate to every tensor leaf. It keeps a shared batch_size across nested structures, making it easy to handle heterogeneous tensor data such as RL rollouts or model batches.

Use cases

  • manage batches of heterogeneous tensors in pytorch
  • store reinforcement learning rollouts with nested observations
  • slice and move nested tensor structures to gpu in one call
  • stack and reshape batches of tensor dictionaries
  • serialize and save collections of tensors with a shared batch size

When to choose

  • you work in PyTorch with nested or heterogeneous tensor data like RL transitions
  • you want dictionary flexibility with tensor-like batch operations
  • you need consistent batch_size enforcement across nested structures

When to avoid

  • your project does not use PyTorch
  • you only need plain tensors or simple homogeneous batches
  • you need a framework-agnostic container

Facets

library · maturity active

machine-learning deep-learning data-science serialization machine-learning deep-learning data-science reinforcement-learning python cross-platform pytorch tensor-container batched-dictionary rl

1 source

Member repositories

RepositoryRoleHealth v2
pytorch/tensordictmain99

For agents

markdown · JSON · MCP: product_card(name="pytorch/tensordict")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem