ONE - On-device Neural Engine
|
Constant folder for Const + Mul -> Const. More...
#include <ConstantFoldMul.h>
Public Member Functions | |
const char * | name (void) const final |
bool | run (loco::Graph *graph) override |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Constant folder for Const + Mul -> Const.
Definition at line 30 of file ConstantFoldMul.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 33 of file ConstantFoldMul.h.
|
overridevirtual |
Before A --- TFMul --- C B --/ After A --- TFMul B --/ TFConst ---------- C Where A,B : inputs of TFMul C : a node that uses TFMul as an input TFMul is disconnected from C Nodes are drawn multiple times to simplify the diagram
Implements logo::Pass.
Definition at line 101 of file ConstantFoldMul.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().