init(data:shape:)
Returns a new n-dimensional array descriptor that references the same data as the specified pointer.
Declaration
init?<T>(data: UnsafeMutableBufferPointer<T>, shape: BNNS.Shape) where T : BNNSScalarParameters
- data:
A pointer to the underlying data.
- shape:
The shape of the n-dimensional array descriptor.