Tensors

A tensor is the central unit of data in TensorFlow. A tensor consists of a set of primitive values shaped into an array of any number of dimensions. It is basically a multidimensional array similar to a NumPy array. The number of dimensions defines the rank of a tensor. Let's see some of the following examples: