Contents

quantized(to:scale:bias:)

Converts a 32-bit floating-point tensor with the scale and bias you specify.

Declaration

func quantized(to type: MLCDataType, scale: Float, bias: Int) -> MLCTensor?

Parameters

  • type:

    The tensor data type.

  • scale:

    The scale to apply for quantizing.

  • bias:

    The offset value that maps to float zero.

Return Value

A tensor the system quantizes.

Discussion

See Also

Converting Tensors