rank Obtains the rank of the tensor. Declarationvar rank: Int { get } DiscussionThe rank represents the number of dimensions.