|
ONE - On-device Neural Engine
|
Class to Substitute Transpose with certain input shape condition to single reshape node. More...
#include <SubstituteTransposeToReshapePass.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 Transpose with certain input shape condition to single reshape node.
Definition at line 28 of file SubstituteTransposeToReshapePass.h.
Reimplemented from logo::Pass.
Definition at line 30 of file SubstituteTransposeToReshapePass.h.
|
finalvirtual |
BEFORE
[CircleNode] [CircleConst]
\ /
[CircleTranspose]
|
[CircleNode]
AFTER
[CircleNode] [CircleConst]
\ /
[CircleReshape]
|
[CircleNode]
Implements logo::Pass.
Definition at line 124 of file SubstituteTransposeToReshapePass.cpp.
References loco::active_nodes(), luci::must_cast(), and loco::output_nodes().