Data model in TensorFlow
The data model in TensorFlow is represented by tensors. Without using complex mathematical definitions, we can say that a tensor (in TensorFlow) identifies a multidimensional numerical array. We will see more details on tensors in the next subsection.
Tensor
Let's see the formal definition of tensor from Wikipedia (https://en.wikipedia.org/wiki/Tensor):
"Tensors are geometric objects that describe linear relations between geometric vectors, scalars, and other tensors. Elementary examples of such relations include the dot product, the cross product, and linear maps. Geometric vectors, often used in physics and engineering applications, and scalars themselves are also tensors."
This data structure is characterized by three parameters: rank, shape, and type, as shown in the following figure:
A tensor can thus be thought of as the generalization...