Checks if a tensor has a uniform size (analogous to checking if a matrix is square).