E
arogozhnikov/einops★ 9,643 · Python
A backend-agnostic Python library for explicit tensor shape transformations
MIT · Commercial Friendlyv0.8.2
Side-by-side 2026 comparison in LLMs & Inference: google-deepmind/sonnet leads in total GitHub adoption (★ 10k), while arogozhnikov/einops shows stronger 7-day momentum. Licensing: MIT · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
A backend-agnostic Python library for explicit tensor shape transformations
TensorFlow 2 modules for custom neural networks and training loops
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | arogozhnikov/einops | google-deepmind/sonnet |
|---|---|---|
| Total GitHub Stars | ★ 9,643 | ★ 9,979 |
| 24h / 7d Velocity | +1 / +5 | +1 / +2 |
| 7-Day Trend Curve | ||
| Engineering Health | B · 60/100 | A · 83/100 |
| Deployment Signals | Local AI · CLI | CLI |
| Primary Language | Python | Python |
| Commercial License | MIT · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated 3mo ago | Updated 1mo ago |
| Latest Release | v0.8.2 | v2.0.2 |
| Best For | Model and inference code that repeatedly splits, merges, or reorders tensor axes, especially when layout needs to be reviewable or shared across frameworks | TensorFlow research teams building reusable network components that need direct control over training loops, distributed state updates, and SavedModel export signatures |
b (c h2 w2) and b (h2 w2 c) make different channel layouts explicit even when their output shapes match.pack with b * c returns shape metadata that unpack uses to restore the component shapes.einsum accepts multi-character axis names and places the pattern after the tensor operands.pip install einopssnt.Module builds on tf.Module, enters module name scopes, and supports input-dependent initialization with @snt.once.snt.Sequential can mix Sonnet layers with TensorFlow callables such as tf.nn.relu; snt.nets.MLP supplies a ready-made network.variables includes non-trainable state, while trainable_variables gives the optimizer the trainable subset.tf.train.Checkpoint preserves training state that is tracked by the checkpoint, while tf.saved_model.save exports traced methods and the variables they need.$ pip install tensorflow tensorflow-probability $ pip install dm-sonnet
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy