Tensor

A tensor is a concept used in a variety of disciplines. Within the context of machine learning, I think of it as a potentially N-dimensional array:

  • A Scalar is a 0-dimensional tensor
  • A Vector is a 1-dimensional tensor
  • A Matrix is a 2-dimensional tensor

Within this context it’s also a specific type within tools/libraries like pytorch and tensorflow.

Resources