ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::CircleQuantizer::Options Struct Referenceabstract

#include <CircleQuantizer.h>

Data Structures

struct  LayerParam
 
class  LayerParamsSet
 

Public Types

enum  Algorithm {
  QuantizeDequantizeWeights , QuantizeWithMinMax , Requantize , CopyQuantParam ,
  ForceQuantParam , ConvertToFakeQuantizedModel , QuantizeWeights , QuantizeOnnxFakeQuantizedModel
}
 
enum  AlgorithmParameters {
  Quantize_input_model_dtype , Quantize_output_model_dtype , Quantize_granularity , Quantize_tensor_names ,
  Quantize_scales , Quantize_zero_points , Quantize_layer_params , Quantize_src_tensor_names ,
  Quantize_dst_tensor_names , Quantize_input_type , Quantize_output_type , Quantize_TF_style_maxpool ,
  Quantize_save_min_max
}
 
using LayerParams = std::vector< std::shared_ptr< LayerParam > >
 

Public Member Functions

virtual ~Options ()=default
 
virtual void enable (Algorithm)=0
 
virtual bool query (Algorithm)=0
 
virtual void param (AlgorithmParameters, const std::string &)=0
 
virtual const std::string param (AlgorithmParameters) const =0
 
virtual void params (AlgorithmParameters, std::vector< std::string > &)=0
 
virtual std::vector< std::string > params (AlgorithmParameters) const =0
 
virtual void layer_params (AlgorithmParameters, LayerParams &)=0
 
virtual LayerParams layer_params (AlgorithmParameters) const =0
 
virtual void layer_params_set (LayerParamsSet &)=0
 
virtual LayerParamsSet layer_params_set (void) const =0
 

Detailed Description

Definition at line 32 of file CircleQuantizer.h.

Member Typedef Documentation

◆ LayerParams

using luci::CircleQuantizer::Options::LayerParams = std::vector<std::shared_ptr<LayerParam> >

Definition at line 41 of file CircleQuantizer.h.

Member Enumeration Documentation

◆ Algorithm

Enumerator
QuantizeDequantizeWeights 
QuantizeWithMinMax 
Requantize 
CopyQuantParam 
ForceQuantParam 
ConvertToFakeQuantizedModel 
QuantizeWeights 
QuantizeOnnxFakeQuantizedModel 

Definition at line 59 of file CircleQuantizer.h.

◆ AlgorithmParameters

Enumerator
Quantize_input_model_dtype 
Quantize_output_model_dtype 
Quantize_granularity 
Quantize_tensor_names 
Quantize_scales 
Quantize_zero_points 
Quantize_layer_params 
Quantize_src_tensor_names 
Quantize_dst_tensor_names 
Quantize_input_type 
Quantize_output_type 
Quantize_TF_style_maxpool 
Quantize_save_min_max 

Definition at line 71 of file CircleQuantizer.h.

72 {
73 // quantize
76 Quantize_granularity, // layer-wise or channel-wise
81
82 // copy_quantparam
85
90 };

Constructor & Destructor Documentation

◆ ~Options()

virtual luci::CircleQuantizer::Options::~Options ( )
virtualdefault

Member Function Documentation

◆ enable()

virtual void luci::CircleQuantizer::Options::enable ( Algorithm  )
pure virtual

◆ layer_params() [1/2]

virtual LayerParams luci::CircleQuantizer::Options::layer_params ( AlgorithmParameters  ) const
pure virtual

◆ layer_params() [2/2]

virtual void luci::CircleQuantizer::Options::layer_params ( AlgorithmParameters  ,
LayerParams  
)
pure virtual

◆ layer_params_set() [1/2]

virtual void luci::CircleQuantizer::Options::layer_params_set ( LayerParamsSet )
pure virtual

◆ layer_params_set() [2/2]

virtual LayerParamsSet luci::CircleQuantizer::Options::layer_params_set ( void  ) const
pure virtual

◆ param() [1/2]

virtual const std::string luci::CircleQuantizer::Options::param ( AlgorithmParameters  ) const
pure virtual

◆ param() [2/2]

virtual void luci::CircleQuantizer::Options::param ( AlgorithmParameters  ,
const std::string &   
)
pure virtual

◆ params() [1/2]

virtual std::vector< std::string > luci::CircleQuantizer::Options::params ( AlgorithmParameters  ) const
pure virtual

◆ params() [2/2]

virtual void luci::CircleQuantizer::Options::params ( AlgorithmParameters  ,
std::vector< std::string > &   
)
pure virtual

◆ query()

virtual bool luci::CircleQuantizer::Options::query ( Algorithm  )
pure virtual

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