Contents

init(width:height:featureChannelCount:batchSize:data:dataType:)

Creates a tensor with the sizes, number of feature channels, data, and data type you specify.

Declaration

convenience init(width: Int, height: Int, featureChannelCount: Int, batchSize: Int, data: MLCTensorData, dataType: MLCDataType)

Parameters

  • width:

    The tensor width.

  • height:

    The tensor height.

  • featureChannelCount:

    The number of feature channels.

  • batchSize:

    The tensor batch size.

  • data:

    The tensor data.

  • dataType:

    The tensor data type.

See Also

Creating Tensors by Specifying Shape