ONE - On-device Neural Engine
|
Pass to write quantparam (scale, zerop) to the specified tensors. More...
#include <ForceQuantParamPass.h>
Public Types | |
using | TensorVector = std::vector< std::string > |
using | ScaleVector = std::vector< float > |
using | ZPVector = std::vector< int64_t > |
Public Member Functions | |
ForceQuantParamPass (TensorVector &tensors, ScaleVector &scales, ZPVector &zerops) | |
virtual const char * | name (void) const |
bool | run (loco::Graph *graph) |
Run the pass. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Pass to write quantparam (scale, zerop) to the specified tensors.
Definition at line 30 of file ForceQuantParamPass.h.
using luci::ForceQuantParamPass::ScaleVector = std::vector<float> |
Definition at line 34 of file ForceQuantParamPass.h.
using luci::ForceQuantParamPass::TensorVector = std::vector<std::string> |
Definition at line 33 of file ForceQuantParamPass.h.
using luci::ForceQuantParamPass::ZPVector = std::vector<int64_t> |
Definition at line 35 of file ForceQuantParamPass.h.
|
inline |
Definition at line 38 of file ForceQuantParamPass.h.
|
inlinevirtual |
Reimplemented from logo::Pass.
Definition at line 43 of file ForceQuantParamPass.h.
Referenced by run().
|
virtual |
Run the pass.
Implements logo::Pass.
Definition at line 41 of file ForceQuantParamPass.cpp.
References loco::active_nodes(), INFO, LOGGER, name(), and loco::output_nodes().
Referenced by package.infer.session::inference().