ArmNN  NotReleased
QuantizeHelper.hpp File Reference
#include <armnn/TypesUtils.hpp>
#include <Half.hpp>
#include <initializer_list>
#include <iterator>
#include <vector>
#include <boost/core/ignore_unused.hpp>
#include <boost/numeric/conversion/cast.hpp>

Go to the source code of this file.

Classes

struct  SelectiveQuantizer< T, DoQuantize >
 
struct  SelectiveQuantizer< T, false >
 
struct  SelectiveQuantizer< armnn::Half, false >
 
struct  IsFloatingPointIterator< ItType >
 

Namespaces

 armnnUtils
 

Functions

template<typename T >
SelectiveQuantize (float value, float scale, int32_t offset)
 
template<typename T >
float SelectiveDequantize (T value, float scale, int32_t offset)
 
template<typename T , typename FloatIt , typename std::enable_if< IsFloatingPointIterator< FloatIt >::value, int >::type = 0>
std::vector< T > QuantizedVector (FloatIt first, FloatIt last, float qScale, int32_t qOffset)
 
template<typename T >
std::vector< T > QuantizedVector (const std::vector< float > &array, float qScale=1.f, int32_t qOffset=0)
 
template<typename T >
std::vector< T > QuantizedVector (std::initializer_list< float > array, float qScale=1.f, int32_t qOffset=0)