#40 · Primary category: Deep Learning Frameworks
einops
Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)
Project last updated:08/26/26
GitHub Stars
9.6K
Forks
398
Contributors
38
License
MIT
Why we included this project
Tensor code is full of small, repetitive shape bookkeeping, and einops is the library many model builders reach for to get rid of it. Instead of chaining a reshape, a transpose, and a squeeze call, you write one readable expression using Einstein-style notation, and that same expression runs on NumPy, PyTorch, JAX, TensorFlow, and MLX without changes. That portability matters for teams that prototype in one framework and deploy in another. The package also includes einsum-style reductions and an EinMix layer for channel and feature mixing, so it covers a good share of the linear algebra you touch while building models. Beginners get readable syntax and worked examples, and anyone who has fought a silent shape mismatch will appreciate error messages that point to the mistake early.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.