TIODataQuantization

struct TIODataQuantization {}

Describes how floating point data will be quantized to uint8_t data.

@field scale A scaling value. @field bias A bias term added after the scale is applied.

Data is quantized according to the following equation: @code quantized_value = value * scale + bias @endcode

  • Undocumented

    Declaration

    Objective-C

    float scale

    Swift

    var scale: Float
  • Undocumented

    Declaration

    Objective-C

    float bias

    Swift

    var bias: Float