ONE - On-device Neural Engine
|
#include <Quantizer.h>
Public Member Functions | |
Quantizer ()=default | |
~Quantizer ()=default | |
int | quantize (const char *in, const char *out, QuantizeType qtype) override |
void | setMinMaxRecordsThreshold (uint32_t value) |
Set the number of minmax records enough for quantization. | |
bool | readyForQuantize () override |
Checking the number of minmax records enough for quantization (comparison with threshold) | |
bool | deleteMinMaxFile () override |
Delete minmax file. | |
Public Member Functions inherited from onert::odc::IQuantizer | |
virtual | ~IQuantizer ()=default |
Definition at line 27 of file Quantizer.h.
|
default |
|
default |
|
overridevirtual |
Delete minmax file.
Implements onert::odc::IQuantizer.
Definition at line 174 of file Quantizer.cc.
|
overridevirtual |
Implements onert::odc::IQuantizer.
Definition at line 87 of file Quantizer.cc.
References onert::odc::Embedder::embed(), luci::CircleExporter::invoke(), luci::CircleQuantizer::options(), luci::CircleQuantizer::quantize(), luci::CircleQuantizer::Options::QuantizeDequantizeWeights, luci::CircleQuantizer::Options::QuantizeWeights, luci::CircleQuantizer::Options::QuantizeWithMinMax, and luci::validate().
|
overridevirtual |
Checking the number of minmax records enough for quantization (comparison with threshold)
Implements onert::odc::IQuantizer.
Definition at line 161 of file Quantizer.cc.
References onert::odc::MinMaxReader::readNumRuns().
|
inlinevirtual |
Set the number of minmax records enough for quantization.
Implements onert::odc::IQuantizer.
Definition at line 38 of file Quantizer.h.