Contents

dimensions

The array of sizes, in elements, one for each dimension of this tensor.

Declaration

var dimensions: MTLTensorExtents? { get }

Discussion

Because shader-bound tensors have dynamic extents, the rank of dimensions corresponds to the rank the shader function specifies, and MTLTensorExtents/extentsAtDimensionIndex: always returns a value of -1.