ONE - On-device Neural Engine
|
#include <QuantizeManager.h>
Public Member Functions | |
QuantizeManager ()=default | |
QuantizeManager (QuantizeManager const &)=delete | |
QuantizeManager & | operator= (QuantizeManager const &)=delete |
void | exportModelPath (const std::string &model_path) |
Set model path to export quantized model. | |
std::string & | exportModelPath () |
Get model path to export quantized model. | |
void | quantizeType (QuantizeType qtype) |
Set quantize type. | |
bool | quantize (const std::string &model_path) |
Quantize model. | |
bool | setMinMaxRecordsThreshold (uint32_t value) |
Set the number of minmax records enough for quantization. | |
bool | readyForQuantize () |
checking minmax recording count and threshold for quantization | |
bool | deleteMinMaxFile () |
Delete MinMax File of on-device compiler. | |
Definition at line 33 of file QuantizeManager.h.
|
default |
|
delete |
bool onert::odc::QuantizeManager::deleteMinMaxFile | ( | ) |
Delete MinMax File of on-device compiler.
Definition at line 73 of file QuantizeManager.cc.
References onert::odc::QuantizerLoader::instance().
|
inline |
Get model path to export quantized model.
Definition at line 54 of file QuantizeManager.h.
|
inline |
Set model path to export quantized model.
model_path | Model path to export quantized model |
Definition at line 47 of file QuantizeManager.h.
|
delete |
bool onert::odc::QuantizeManager::quantize | ( | const std::string & | model_path | ) |
Quantize model.
[in] | model_path | Model path to quantize |
true
if success, otherwise false
Definition at line 28 of file QuantizeManager.cc.
References onert::odc::QuantizerLoader::instance().
|
inline |
Set quantize type.
qtype | quantization type |
Definition at line 63 of file QuantizeManager.h.
bool onert::odc::QuantizeManager::readyForQuantize | ( | ) |
checking minmax recording count and threshold for quantization
true
if ready, otherwise false
Definition at line 61 of file QuantizeManager.cc.
References onert::odc::QuantizerLoader::instance().
bool onert::odc::QuantizeManager::setMinMaxRecordsThreshold | ( | uint32_t | value | ) |
Set the number of minmax records enough for quantization.
true
if success, otherwise false
Definition at line 49 of file QuantizeManager.cc.
References onert::odc::QuantizerLoader::instance().