|
ONE - On-device Neural Engine
|
#include <PatternSolver.h>

Public Member Functions | |
| PatternSolver (const mpqsolver::core::Quantizer::Context &ctx, const std::vector< QuantizationPattern > &patterns) | |
| construct PatternSolver using qunatization context and patterns to apply | |
| std::unique_ptr< luci::Module > | run (const std::string &module_path) override |
| run solver for recorded float module at module_path | |
Public Member Functions inherited from mpqsolver::MPQSolver | |
| MPQSolver (const core::Quantizer::Context &ctx) | |
| virtual | ~MPQSolver ()=default |
| void | setSaveIntermediate (const std::string &save_path) |
| set all intermediate artifacts to be saved | |
Additional Inherited Members | |
Protected Member Functions inherited from mpqsolver::MPQSolver | |
| std::unique_ptr< luci::Module > | readModule (const std::string &path) |
Protected Attributes inherited from mpqsolver::MPQSolver | |
| std::string | _input_quantization |
| std::string | _output_quantization |
| std::unique_ptr< core::Quantizer > | _quantizer |
| std::unique_ptr< core::DumpingHooks > | _hooks |
Definition at line 48 of file PatternSolver.h.
| PatternSolver::PatternSolver | ( | const mpqsolver::core::Quantizer::Context & | ctx, |
| const std::vector< QuantizationPattern > & | patterns | ||
| ) |
construct PatternSolver using qunatization context and patterns to apply
Definition at line 29 of file PatternSolver.cpp.
|
overridevirtual |
run solver for recorded float module at module_path
Implements mpqsolver::MPQSolver.
Definition at line 37 of file PatternSolver.cpp.
References mpqsolver::MPQSolver::_hooks, and mpqsolver::MPQSolver::_quantizer.