What are Tensor Diagrams?

Machine learning involves a lot of tensor manipulation, and it's easy to lose track of the bigger picture when manipulating high-dimensional data using notation designed for vectors and matrices.

It turns out all the trouble with tensors disappears when you instead represent them using graphs:

This book aims to standardize the notation for tensor diagrams by rewriting the classical "Matrix Cookbook" using this notation.

Tensor diagrams are better than alternative notation like Index Notation (einsum) because they:

About the Book:

"The Tensor Cookbook" is a comprehensive guide to tensors, using the visual language of tensor diagrams. It closely follows the legendary "Matrix Cookbook" while providing a new way to understand and appreciate tensor operations through diagrams.

This book covers a wide range of topics, including: