|
ONE - On-device Neural Engine
|
#include <Dumper.h>
Public Member Functions | |
| Dumper ()=default | |
| Dumper (const std::string &dir_path) | |
| void | setModelPath (const std::string &model_path) |
| sets model path for further usage | |
| void | dumpMPQConfiguration (const LayerParams &layers, const std::string &def_dtype, const std::string &def_granularity, int step) const |
| dumps mpq configuration | |
| void | dumpFinalMPQ (const LayerParams &layers, const std::string &def_dtype, const std::string &def_granularity) const |
| dumps final mpq configuration | |
| void | dumpQuantized (luci::Module *module, uint32_t step) const |
| dumps quantized module | |
| void | prepareForErrorDumping () const |
| create file for error dumping | |
| void | dumpQ8Error (float error) const |
| append error of Q8 quantization | |
| void | dumpQ16Error (float error) const |
| append error of Q16 quantization | |
| void | dumpMPQError (float error, uint32_t step) const |
| append error of mpq quantization | |
| void | dumpMPQError (float error) const |
| dump final error | |
|
default |
| Dumper::Dumper | ( | const std::string & | dir_path | ) |
Definition at line 41 of file Dumper.cpp.
| void Dumper::dumpFinalMPQ | ( | const LayerParams & | layers, |
| const std::string & | def_dtype, | ||
| const std::string & | def_granularity | ||
| ) | const |
dumps final mpq configuration
| layers | specific quantization parameters |
| def_dtype | default quantization data type |
| def_granularity | default granularity |
Definition at line 90 of file Dumper.cpp.
References dumpMPQConfiguration().
Referenced by mpqsolver::core::DumpingHooks::onEndSolver().
| void Dumper::dumpMPQConfiguration | ( | const LayerParams & | layers, |
| const std::string & | def_dtype, | ||
| const std::string & | def_granularity, | ||
| int | step | ||
| ) | const |
dumps mpq configuration
| layers | specific quantization parameters |
| def_dtype | default quantization data type |
| def_granularity | default granularity |
| step | id of mpq configuration |
Definition at line 82 of file Dumper.cpp.
References dumpMPQConfiguration().
Referenced by dumpFinalMPQ(), dumpMPQConfiguration(), and mpqsolver::core::DumpingHooks::onEndIteration().
| void Dumper::dumpMPQError | ( | float | error | ) | const |
dump final error
| error | final error of quantization |
Definition at line 157 of file Dumper.cpp.
| void Dumper::dumpMPQError | ( | float | error, |
| uint32_t | step | ||
| ) | const |
append error of mpq quantization
| error | error of quantization |
| step | id of error |
Definition at line 151 of file Dumper.cpp.
Referenced by mpqsolver::core::DumpingHooks::onEndIteration(), and mpqsolver::core::DumpingHooks::onEndSolver().
| void Dumper::dumpQ16Error | ( | float | error | ) | const |
append error of Q16 quantization
Definition at line 145 of file Dumper.cpp.
Referenced by mpqsolver::core::DumpingHooks::onBeginSolver().
| void Dumper::dumpQ8Error | ( | float | error | ) | const |
append error of Q8 quantization
Definition at line 139 of file Dumper.cpp.
Referenced by mpqsolver::core::DumpingHooks::onBeginSolver().
| void Dumper::dumpQuantized | ( | luci::Module * | module, |
| uint32_t | step | ||
| ) | const |
dumps quantized module
| layers | specific quantization parameters |
| step | id of quantized module |
Definition at line 116 of file Dumper.cpp.
Referenced by mpqsolver::core::DumpingHooks::onQuantized().
| void Dumper::prepareForErrorDumping | ( | ) | const |
create file for error dumping
Definition at line 130 of file Dumper.cpp.
Referenced by mpqsolver::core::DumpingHooks::onBeginSolver().
| void Dumper::setModelPath | ( | const std::string & | model_path | ) |
sets model path for further usage
Definition at line 43 of file Dumper.cpp.
Referenced by mpqsolver::core::DumpingHooks::onBeginSolver().