ONE - On-device Neural Engine
|
Class to remove redundant Reshape node into 1 Reshape node. More...
#include <RemoveRedundantReshapePass.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 redundant Reshape node into 1 Reshape node.
This class will update consecutive two Reshape node into single Reshape node. As Reshape operation just change shape, not buffer, former reshape could be unnecessary.
Definition at line 30 of file RemoveRedundantReshapePass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 32 of file RemoveRedundantReshapePass.h.
|
finalvirtual |
BEFORE
[CircleNode] |
[CircleReshape_1] | [CircleReshape_2] | [CircleNode]
AFTER
[CircleNode] / \
[CircleReshape_1] [CircleReshape_2] | [CircleNode]
Implements logo::Pass.
Definition at line 58 of file RemoveRedundantReshape.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().