arogozhnikov/einops
Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others) observed · 2026-10-07
Health v2 · maintenance only
71/100
- Activity 91
- Release rhythm 28
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 351
- age_days: 2951
- days_rel: 268
- days_push: 55
- n_releases_24m: 2
Adoption not part of the score
9615 stars · 402 forks observed · 2026-10-07
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-10-07 · 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 | 71 |
For agents
markdown · JSON · MCP: product_card(name="arogozhnikov/einops")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem