News for hackers. Stuff that matters.
Re:A basic introduction to NumPy's einsum by machinekob on Saturday April 09, 2022 @06:27PM (#30972754)
I would say https://github.com/arogozhnikov/einops should be pretty close to your requirments
Re:A basic introduction to NumPy's einsum by polygamous_bat on Saturday April 09, 2022 @06:41PM (#30972872)
I would like to second that! I converted multiple of my lab mates into Einops just by having them browse through the tutorial in https://einops.rocks/ :)
Re:A basic introduction to NumPy's einsum by jpeanuts on Saturday April 09, 2022 @07:20PM (#30973089)
Looking at the documentation - einops seems to only implement operations on a single tensor, so it's quite far from a general replacement for einsum, which can perform tensor-products on an arbitrary number of tensors.