AIExplainer
Programming Frameworks Intermediate 1 min read

What is an Einsum notation?

An efficient notation for describing how two tensors are to be combined.

An efficient notation for describing how two tensors are to be combined. The tensors are combined by multiplying the elements of one tensor by the elements of the other tensor and then summing the products. Einsum notation uses symbols to identify the axes of each tensor, and those same symbols are rearranged to specify the shape of the new resulting tensor. NumPy provides a common Einsum implementation.

Practitioners refer to einsum notation when building, training, or evaluating machine learning systems. It appears in research papers, product documentation, and technical discussions about AI capabilities and limitations.