Contents

allocateUninitialized(scalarType:shape:batchSize:)

Returns a new n-dimensional array descriptor that’s allocated with uninitialized memory.

Declaration

static func allocateUninitialized(scalarType: any BNNSScalar.Type, shape: BNNS.Shape, batchSize: Int = 1) -> BNNSNDArrayDescriptor

Parameters

  • scalarType:

    The data type of the data.

  • shape:

    The shape of n-dimensional array descriptor.

  • batchSize:

    The number of batches of data.

See Also

Allocating and Deallocating Memory