ONE - On-device Neural Engine
|
#include <RemoveUnnecessaryTransposeNetPass.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 |
Definition at line 25 of file RemoveUnnecessaryTransposeNetPass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 27 of file RemoveUnnecessaryTransposeNetPass.h.
|
finalvirtual |
BEFORE
Current pass only targets below cases:
[CircleNode] [CircleConst]
(in) (perm) \ / [CircleTranspose] [CircleConst] \ (shape) \ / [CircleReshape] [CircleConst] \ (perm) \ / [CircleTranspose] \ \ [CircleNode] (out)
AFTER
[CircleNode] [CircleConst] (in) (shape) \ / [CircleReshape] (new) \ [CircleNode] (out)
Implements logo::Pass.
Definition at line 534 of file RemoveUnnecessaryTransposeNetPass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().