Property rank rank The rank of a TensorShape. For example, a tensor of shape (5) has a rank of 1. A tensor of shape (7, 3, 5) has a rank of 3. Declaration public int rank { get; } Property Value Type Description int