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