ONE - On-device Neural Engine
|
Class to Remove Unnecessary(input and output are same) Slice node. More...
#include <RemoveUnnecessarySlicePass.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 Remove Unnecessary(input and output are same) Slice node.
Definition at line 28 of file RemoveUnnecessarySlicePass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 30 of file RemoveUnnecessarySlicePass.h.
|
finalvirtual |
BEFORE
[CircleNode] | [CircleSlice] | [CircleNode]
AFTER
[CircleNode] | [CircleNode]
Slice OP has no effect if,
Implements logo::Pass.
Definition at line 97 of file RemoveUnnecessarySlicePass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().