Eli Bendersky's
Follow
Understanding Numpy's einsum
This is a brief explanation and a cookbook for using numpy.einsum,
which lets us use Einstein notation to evaluate operations on
multi-dimensional arrays. The focus here is mostly on einsum's explicit mode
(with -> and output dimensions explicitly specified in the subscript string)
and use cases common in ML papers …