Contents

init(convolutionWeightsWithWidth:height:inputFeatureChannelCount:outputFeatureChannelCount:dataType:)

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

Declaration

convenience init?(convolutionWeightsWithWidth width: Int, height: Int, inputFeatureChannelCount: Int, outputFeatureChannelCount: Int, dataType: MLCDataType)

Parameters

  • width:

    The tensor width.

  • height:

    The tensor height.

  • inputFeatureChannelCount:

    The number of input feature channels.

  • outputFeatureChannelCount:

    The number of output feature channels.

  • dataType:

    The tensor data type.

Discussion

This initializer provides a convenient way for you to configure weights tensors.

See Also

Creating Tensor Descriptors