arogozhnikov/einops
Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others) observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 36
- 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: 351
- age_days: 2903
- days_rel: 219
- days_push: 7
- n_releases_24m: 2
Adoption not part of the score
9581 stars · 397 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
einops is a Python library providing readable, framework-agnostic tensor operations via mini-language functions like rearrange, reduce, and repeat. It works across numpy, PyTorch, JAX, TensorFlow, MLX, and other array backends.
Use cases
- reshape and transpose tensors with readable expressions
- write deep learning code that works across pytorch, jax, and tensorflow
- replace verbose reshape, permute, and squeeze calls
- reduce and aggregate tensor dimensions declaratively
- pack and unpack variable-length tensor lists
- implement custom layers like EinMix for neural networks
When to choose
- you work with high-dimensional tensors in deep learning and want readable, less error-prone code
- you need the same tensor manipulation code to run on multiple frameworks
- you want to simplify stacking, reshaping, transposition, and reduction logic
When to avoid
- you only do simple 2D array math where numpy alone suffices
- you need maximum raw performance with zero abstraction overhead
- your team is unwilling to learn the einops mini-language syntax
Facets
library · maturity stable
machine-learning deep-learning math developer-tools deep-learning machine-learning data-science python cross-platform tensor-manipulation einsum pytorch jax numpy tensor-operations
3 sources
- readme: https://github.com/arogozhnikov/einops · fetched 2026-08-28 · 2f27fcd67e53
- homepage: https://einops.rocks · fetched 2026-08-29 · dcd783bbd4d7
- registry_pypi: https://pypi.org/pypi/einops/json · fetched 2026-08-29 · 5f583dbf634e
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| arogozhnikov/einops | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="arogozhnikov/einops")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem