Contents

init(shape:data:dataType:)

Creates a tensor with the shape, data, and data type you specify.

Declaration

convenience init(shape: [Int], data: MLCTensorData, dataType: MLCDataType)

Parameters

  • shape:

    An array that contains the sizes of each dimension.

  • data:

    The tensor data.

  • dataType:

    The tensor data type.

See Also

Creating Tensors by Specifying Shape