ArmNN
 21.02
NetworkQuantizerUtils.hpp File Reference
#include "NetworkQuantizationScheme.hpp"
#include <armnn/Tensor.hpp>
#include <armnn/TypesUtils.hpp>
#include <armnn/ILayerVisitor.hpp>
#include <armnn/IStrategy.hpp>
#include <armnn/utility/Assert.hpp>
#include <utility>
#include <limits>

Go to the source code of this file.

Namespaces

 armnn
 Copyright (c) 2021 ARM Limited and Contributors.
 

Functions

template<typename srcType >
void QuantizeConstant (const srcType *src, uint8_t *dst, size_t numElements, float &scale, int &offset)
 
ConstTensor CreateQuantizedConst (const ConstTensor &tensor, std::vector< uint8_t > &backing)
 
template<typename LayerContainer >
void VisitLayers (const LayerContainer &layerContainer, ILayerVisitor &visitor)
 
template<typename LayerContainer >
void ApplyStrategyToLayers (const LayerContainer &layerContainer, IStrategy &strategy)