What is the shape of a tensor in tensorflow? What does it represent?
I've read this and what I understood is that the shape of a tensor is the number of elements for every dimension of a tensor, but in the first code snippet:
[[1., 2., 3.], [4., 5., 6.]] # a rank 2 tensor; a matrix with shape [2, 3]
It says that the shape is 2 and 3 but in the first dimension of the tensor there are three elements and not 2, why?