Contents

init(shape:stride:dataType:)

Returns a BNNSTensor structure based on the supplied shape and data type.

Declaration

init(shape: [Int], stride: [Int], dataType: BNNSDataType)

Parameters

  • shape:

    The shape of the tensor.

  • stride:

    The stride of the tensor.

  • dataType:

    The data type of the data.