allocateUninitialized(scalarType:shape:stride:)
Creates a BNNSTensor of the specified data type with allocated memory.
Declaration
static func allocateUninitialized(scalarType: any BNNSScalar.Type, shape: [Int], stride: [Int]) -> BNNSTensorParameters
- scalarType:
The data type.
- shape:
The shape of the tensor.
- stride:
The stride of the tensor.