tensorflow.org
Introduction to Tensors
<tf.Tensor: shape=(), dtype=int64, numpy=3> About shapes. Tensors have shapes. Some vocabulary: Shape: The length (number of elements) of each of the axes of a tensor. Rank: Number of tensor axes. A scalar has rank 0, a vector has rank 1, a matrix is rank 2. Axis or Dimension: A particular dimension of a tensor.