ArmNN
 26.01
Loading...
Searching...
No Matches
SelectiveQuantizer< T, DoQuantize > Struct Template Reference

#include <QuantizeHelper.hpp>

Static Public Member Functions

static T Quantize (float value, float scale, int32_t offset)
 
static float Dequantize (T value, float scale, int32_t offset)
 

Detailed Description

template<typename T, bool DoQuantize = true>
struct armnnUtils::SelectiveQuantizer< T, DoQuantize >

Definition at line 23 of file QuantizeHelper.hpp.

Member Function Documentation

◆ Dequantize()

template<typename T , bool DoQuantize = true>
static float Dequantize ( T value,
float scale,
int32_t offset )
inlinestatic

Definition at line 30 of file QuantizeHelper.hpp.

31 {
32 return armnn::Dequantize(value, scale, offset);
33 }

References armnn::Dequantize.

◆ Quantize()

template<typename T , bool DoQuantize = true>
static T Quantize ( float value,
float scale,
int32_t offset )
inlinestatic

Definition at line 25 of file QuantizeHelper.hpp.

26 {
27 return armnn::Quantize<T>(value, scale, offset);
28 }

The documentation for this struct was generated from the following file: