ONE - On-device Neural Engine
|
Class to Forward Transpose Ops for further optimization. More...
#include <ForwardTransposeOpPass.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 Forward Transpose Ops for further optimization.
Definition at line 28 of file ForwardTransposeOpPass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 30 of file ForwardTransposeOpPass.h.
|
finalvirtual |
BEFORE
[CircleNode] [CircleNode] | | [CircleTranspose] [CircleTranspose] | / [(BinaryOp)] |
BinaryOp: CircleAdd, CircleMul, ...
| [CircleNode] [CircleConst] | / [CircleTranspose] [CircleConst] / | /
[CircleNode] [(BinaryOp)] | | \ | | [CircleNode] | | |
BinaryOp: CircleAdd, CircleMul, ...
| [CircleNode] [CircleConst] | / [CircleTranspose] / |
[CircleNode] [(UnaryOp)] | | \ | | [CircleNode] | | |
UnaryOp: CircleAbs, ...
AFTER
[CircleNode] [CircleNode] | / [(BinaryOp)] | [CircleTranspose] |
BinaryOp: CircleAdd, CircleMul, ...
|
[CircleConst] [CircleNode] [CircleConst(updated)] | / | / [CircleTranspose] [(BinaryOp)] [CircleConst] | | / [CircleNode] [CircleTranspose] | | \ | | [CircleNode] | | |
|
[CircleConst] [CircleNode] | / | [CircleTranspose] [(UnaryOp)] [CircleConst] | | / [CircleNode] [CircleTranspose] | | \ | | [CircleNode] | | |
Note: new [CircleTranspose] is added after [(BinaryOp)]
Implements logo::Pass.
Definition at line 491 of file ForwardTransposeOpPass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().