ONE - On-device Neural Engine
Loading...
Searching...
No Matches
luci::CircleQuantizer Class Referencefinal

#include <CircleQuantizer.h>

Data Structures

struct  Options
 

Public Member Functions

Optionsoptions (void)
 
void quantize (loco::Graph *) const
 

Detailed Description

Definition at line 29 of file CircleQuantizer.h.

Member Function Documentation

◆ options()

CircleQuantizer::Options * luci::CircleQuantizer::options ( void  )

Definition at line 381 of file CircleQuantizer.cpp.

382{
383 if (_options == nullptr)
384 {
385 _options = std::make_unique<QuantizeOptionsImpl>();
386 }
387
388 return _options.get();
389}

Referenced by entry(), onert::odc::Quantizer::quantize(), and mpqsolver::core::Quantizer::quantize().

◆ quantize()

void luci::CircleQuantizer::quantize ( loco::Graph g) const

Definition at line 784 of file CircleQuantizer.cpp.

785{
786 quantize_dequantize_weight(g);
787 quantize_with_min_max(g);
788 quantize_weights(g);
789 quantize_onnx_fake_quantized_model(g);
790 requantize(g);
791 force_quant_param(g);
792 copy_quant_param(g);
793 convert_to_fake_quantized_model(g);
794
795 logo::Phase phase;
796
797 // Do Shape/Type inference
798 phase.emplace_back(std::make_unique<luci::CircleShapeInferencePass>());
799 phase.emplace_back(std::make_unique<luci::CircleTypeInferencePass>());
800
803 phase_runner.attach(&prog);
804 phase_runner.run(phase);
805}
std::vector< std::unique_ptr< Pass > > Phase
Definition Phase.h:31

References logo::Saturate.

Referenced by entry(), onert::odc::Quantizer::quantize(), and mpqsolver::core::Quantizer::quantize().


The documentation for this class was generated from the following files: