rank The rank of the tensor. Declarationvar rank: Int { get } DiscussionEquivalent to shape.count. See AlsoInspecting the viewisContiguousshapestrides