Re:A basic introduction to NumPy's einsum
by johnnymellor on Sunday April 10, 2022 @05:58AM
(#30975710)
Einops looks nice! It reminds me of https://github.com/deepmind/einshape which is another attempt at unifying reshape, squeeze, expand_dims, transpose, tile, flatten, etc under an einsum-inspired DSL.
Somebody also realized that much of the time you can use one single function to describe all 3 of the einops operations. I present to you, einop: https://github.com/cgarciae/einop
Re:A basic introduction to NumPy's einsum
by PartiallyTyped on Sunday April 10, 2022 @01:21AM
(#30974665)
In addition, einsum in jax uses einops.
https://einops.rocks/pytorch-examples.html shows how it can be used to implement various neural network architectures in a more simplified manor.