arogozhnikov/einops
View on GitHub ↗ ★ 9,631 Python
Flexible and powerful tensor operations for readable and reliable code (for pytorch, jax, TF and others)
8 mentions on Hacker News by 7 people: 2 stories, 6 comments · first 2018-11-15 · latest 2025-09-24
20082026
-
Related - einops https://github.com/arogozhnikov/einops
comment by jlukecarlson · 2025-09-24 · in How is einx notation universal? -
See also https://github.com/arogozhnikov/einops Having used these (mostly translating code that used them) I see the power and benefit. I also find it takes a lot of mentally energy to get my head around them and makes readability harder.
comment by andy99 · 2024-04-27 · in Einsum for Tensor Manipulation -
Also see Einops: https://github.com/arogozhnikov/einops , which uses a einsum-like notation for various tensor operations used in deep learning. https://einops.rocks/pytorch-examples.html shows how it can be used to implement various…
comment by teddykoker · 2022-04-10 · in A basic introduction to NumPy's einsum -
I would say https://github.com/arogozhnikov/einops should be pretty close to your requirments
comment by machinekob · 2022-04-09 · in A basic introduction to NumPy's einsum -
…with something like einops [1] ( intuitive reshaping library) can be a huge time saver. [1] https://github.com/arogozhnikov/einops
comment by d4rkp4ttern · 2022-03-20 · in Ask HN: What technologies greatly improve the efficiency of development? -
This is neat. However I've rather use einsum and einops [0] to reshape stuff in practice. [0] https://github.com/arogozhnikov/einops
comment by _rerr · 2020-08-28 · in TF-Coder, a tool that writes tricky TensorFlow expressions