#include <MPQSolver.h>
Definition at line 31 of file MPQSolver.h.
◆ MPQSolver()
Definition at line 24 of file MPQSolver.cpp.
25{
26 _quantizer = std::make_unique<core::Quantizer>(ctx);
27}
std::unique_ptr< core::Quantizer > _quantizer
References _quantizer.
◆ ~MPQSolver()
virtual mpqsolver::MPQSolver::~MPQSolver |
( |
| ) |
|
|
virtualdefault |
◆ readModule()
std::unique_ptr< luci::Module > MPQSolver::readModule |
( |
const std::string & |
path | ) |
|
|
protected |
Definition at line 34 of file MPQSolver.cpp.
35{
37 auto module = importerex.importVerifyModule(path);
38 if (
module.get() ==
nullptr)
39 {
40 throw std::runtime_error("Failed to load model");
41 }
42
43 return module;
44}
◆ run()
virtual std::unique_ptr< luci::Module > mpqsolver::MPQSolver::run |
( |
const std::string & |
module_path | ) |
|
|
pure virtual |
◆ setSaveIntermediate()
void MPQSolver::setSaveIntermediate |
( |
const std::string & |
save_path | ) |
|
set all intermediate artifacts to be saved
Definition at line 29 of file MPQSolver.cpp.
30{
31 _hooks = std::make_unique<core::DumpingHooks>(save_path,
_quantizer->getContext());
32}
std::unique_ptr< core::DumpingHooks > _hooks
References _hooks, and _quantizer.
◆ _hooks
◆ _input_quantization
std::string mpqsolver::MPQSolver::_input_quantization |
|
protected |
◆ _output_quantization
std::string mpqsolver::MPQSolver::_output_quantization |
|
protected |
◆ _quantizer
The documentation for this class was generated from the following files: