Contents

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

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

Declaration

convenience init(width: Int, height: Int, featureChannelCount: Int, batchSize: Int, fillWithData fillData: Float, dataType: MLCDataType)

Parameters

  • width:

    The tensor width.

  • height:

    The tensor height.

  • featureChannelCount:

    The number of feature channels.

  • batchSize:

    The tensor batch size.

  • fillData:

    The scalar value you use to initialize the tensor data.

  • dataType:

    The tensor data type.

See Also

Creating Tensors by Specifying Shape