by ziofill · 2y ago · 0 comments
Even better is if the library keeps track of the names of the tensor axes and the einsum is automatic.
[1] https://pytorch.org/docs/stable/generated/torch.einsum.html
[2] https://numpy.org/doc/stable/reference/generated/numpy.einsu...