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

Class UniformQuantizationInfo

arm_compute/core/QuantizationInfo.h:46–68  ·  view source on GitHub ↗

Quantization info when assuming per layer quantization */

Source from the content-addressed store, hash-verified

44
45/** Quantization info when assuming per layer quantization */
46struct UniformQuantizationInfo
47{
48 /** Default constructor */
49 UniformQuantizationInfo() : scale(0.f), offset(0)
50 {
51 }
52 /** Constructor
53 *
54 * @param[in] scale Quantization scale
55 * @param[in] offset Quantization offset
56 */
57 UniformQuantizationInfo(float scale, int32_t offset) : scale(scale), offset(offset)
58 {
59 }
60 /** Checks if the scale and offset are both zero */
61 bool empty() const
62 {
63 return (scale == 0) && (offset == 0);
64 }
65
66 float scale;
67 int32_t offset;
68};
69
70/** Quantization info when assuming per layer quantization */
71struct UniformRequantizationInfo

Callers 12

configureMethod · 0.85
configureMethod · 0.85
add_mul_add_s8_neonFunction · 0.85
add_mul_add_u8_neonFunction · 0.85
poolingMxN_q8_neon_nhwcFunction · 0.85
TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected