ONE - On-device Neural Engine
|
Constant folder for Const + Add -> Const. More...
#include <ConstantFoldAdd.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 + Add -> Const.
Definition at line 30 of file ConstantFoldAdd.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 33 of file ConstantFoldAdd.h.
|
overridevirtual |
Before A --- TFAdd --- C B --/ After A --- TFAdd B --/ TFConst ---------- C Where A,B : inputs of TFAdd C : a node that uses TFAdd as an input TFAdd is disconnected from C Nodes are drawn multiple times to simplify the diagram
Implements logo::Pass.
Definition at line 101 of file ConstantFoldAdd.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().