MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / dequantize

Function dequantize

arm_compute/core/QuantizationInfo.h:459–462  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

457 * @return Dequantized value
458 */
459inline 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 *

Calls

no outgoing calls

Tested by

no test coverage detected