einops
Deep learning operations library for flexible tensor manipulation in PyTorch and other frameworks.
ML and data science PyPI MIT
How einops is used
einops is a dependency in 10 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 131 projects, and what it is used with below comes from all of them. Projects that use it most often also use pandas (83.2%), NumPy (82.4%), Matplotlib (69.5%).
einops popularity over time
Gid Score 62: downloads 80, use in agent projects 55, GitHub stars 49, downloads trend 55 (each 0-100). How it is calculated.
Often used with einops
| pandas | 83.2% of einops projects · 19.3× more than average |
|---|---|
| NumPy | 82.4% of einops projects · 14.1× more than average |
| Matplotlib | 69.5% of einops projects · 25.8× more than average |
| Hugging Face Hub | 67.9% of einops projects · 74.0× more than average |
| Pillow | 67.9% of einops projects · 17.7× more than average |
| Requests | 67.2% of einops projects · 9.9× more than average |
| Hugging Face Transformers | 64.1% of einops projects · 51.7× more than average |
| Pydantic | 64.1% of einops projects · 7.4× more than average |
From all 131 projects in our scan that use einops, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|
Share of public repos configured for each agent that list einops as a dependency.
Install
| Package | pip install einops |
|---|---|
| Main stacks | Python (129), React Native / Expo (1), Next.js (1) |
| Example projects | Paper2Poster/Paper2Poster, SocialAI-tianji/Tianji, google-deepmind/materials_discovery, FlagOpen/RoboBrain2.5, SPThole/CoexistAI |
Alternatives to einops
In our scan, none of the most used tools in ML and data science does the same job as einops: they are add-ons, companions or tools for a different task.
More in ML and data science: NumPy pandas scikit-learn SciPy PyTorch Sentence Transformers Hugging Face Transformers NetworkX