ONE - On-device Neural Engine
|
Class to Remove Unnecessary(input shape and output shape same) Reshape node. More...
#include <RemoveUnnecessaryReshapePass.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 shape and output shape same) Reshape node.
Definition at line 28 of file RemoveUnnecessaryReshapePass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 30 of file RemoveUnnecessaryReshapePass.h.
|
finalvirtual |
BEFORE [CircleNode] | [CircleReshape] | [CircleNode]
AFTER [CircleNode] | \ | [CircleReshape] | [CircleNode]
NOTE This pass will remove Reshape when input and output has same shape
Implements logo::Pass.
Definition at line 80 of file RemoveUnnecessaryReshapePass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().