In machine learning, a tensor is a numerical array organized along one or more axes. A single number, vector and matrix can be treated as zero-, one- and two-dimensional tensors, respectively. Models also represent inputs, weights and intermediate results with higher-dimensional tensors.
In mathematics, a tensor has a more precise definition based on how it transforms when coordinates change. Machine learning usage generally emphasizes multidimensional arrays and operations on them.