Contents

init(width:height:featureChannelCount:batchSize:)

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

Declaration

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

Parameters

  • width:

    The tensor width.

  • height:

    The tensor height.

  • featureChannelCount:

    The number of feature channels.

  • batchSize:

    The tensor batch size.

Discussion

The tensor data type is MLCDataType.float32.

See Also

Creating Tensors by Specifying Shape