Contents

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

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

Declaration

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

Parameters

  • width:

    The tensor width.

  • height:

    The tensor height.

  • featureChannelCount:

    The number of feature channels.

  • batchSize:

    The tensor batch size.

  • data:

    The tensor data.

See Also

Creating Tensors by Specifying Shape