Contents

init(rank:shape:)

Creates a shape structure with the specified rank and dimensions.

Declaration

init(rank: Int, shape: UnsafeMutablePointer<UInt64>?)

Parameters

  • rank:

    The rank of the tensor and number of elements in array shape.

  • shape:

    Array with a count of Rank that contains the sizes of each dimension.

See Also

Initializing a graph shape