A tensor is a data structure, a multi-dimensional array. Used to store data for input and output to a given model. It can be created by Numpy or like on this case with PyTorch.

Tensor Properties:

  • Data type
  • Shape
  • Dimension/Rank
  • Size
  • Mutability

Tensor operations

Over 100 tensor operations, including arithmetic, linear algebra, matrix manipulation (transposing, indexing, slicing), sampling