Dequantize a value given an 8-bit asymmetric quantization scheme * * @param[in] value Value to dequantize * @param[in] scale Scale to use for dequantization * @param[in] offset Zero-offset to use for dequantization * * @return Dequantized value */
| 457 | * @return Dequantized value |
| 458 | */ |
| 459 | inline float dequantize(uint8_t value, float scale, int32_t offset) |
| 460 | { |
| 461 | return (static_cast<int>(value) - offset) * scale; |
| 462 | } |
| 463 | |
| 464 | /** Dequantize a value given a 8-bit symmetric quantization scheme |
| 465 | * |
no outgoing calls
no test coverage detected