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].
The shape of the tensor.
var shape: [Int] { get }For example, 2 x 3 matrix may be represented as a tensor with the shape of [2, 3].