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