17#ifndef __MPQSOLVER_CORE_QUANTIZER_H__
18#define __MPQSOLVER_CORE_QUANTIZER_H__
33using LayerParams = std::vector<std::shared_ptr<LayerParam>>;
luci::CircleQuantizer::Options::LayerParams LayerParams
Collection of 'loco::Graph's.
bool quantize(luci::Module *module, const std::string &quant_dtype, LayerParams &layer_params)
quantize recorded module (min/max initialized) with specified parameters returns true on success
bool fakeQuantize(luci::Module *module, const std::string &quant_dtype, LayerParams &layer_params)
fake_quantize recorded module (min/max initialized) with specified parameters returns true on success
Quantizer(const Context &ctx)
void setHook(const QuantizerHook *callback)
set hook on the end of quantization event
const Context & getContext() const
std::vector< std::shared_ptr< LayerParam > > LayerParams
std::string output_model_dtype
virtual void onQuantized(luci::Module *module) const =0
called on successfull quantization