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) -> BNNSNDArrayDescriptorParameters
- 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
allocate(initializingFrom:shape:batchSize:)allocate(randomUniformUsing:range:shape:batchSize:)allocate(randomUniformUsing:range:shape:batchSize:)allocate(randomIn:shape:batchSize:)allocate(randomIn:shape:batchSize:)allocate(randomIn:using:shape:batchSize:)allocate(randomIn:using:shape:batchSize:)allocate(repeating:shape:batchSize:)deallocate()