Contents

shape

The shape of the tensor.

Declaration

var shape: [Int] { get }

Discussion

For example, 2 x 3 matrix may be represented as a tensor with the shape of [2, 3].

See Also

Accessing tensor properties