ONE - On-device Neural Engine
|
Class to substitute Strided_Slice with certain condition to single reshape node. More...
#include <SubstituteStridedSliceToReshapePass.h>
Public Member Functions | |
const char * | name (void) const final |
bool | run (loco::Graph *g) final |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Class to substitute Strided_Slice with certain condition to single reshape node.
Definition at line 28 of file SubstituteStridedSliceToReshapePass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 30 of file SubstituteStridedSliceToReshapePass.h.
|
finalvirtual |
BEFORE | [CircleNode] [CircleConst] [CircleConst] [CircleConst] | | | | ----—+---------------------------------— | [CircleStridedSlice] | [CircleNode] | AFTER | [CircleConst] [CircleNode] [CircleConst] [CircleConst] [CircleConst] \ / \ | | | [CircleReshape] ----------------—+-------------------— | | [CircleNode] [CircleStridedSlice] |
Implements logo::Pass.
Definition at line 199 of file SubstituteStridedSliceToReshapePass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().