ONE - On-device Neural Engine
|
Class to temove unnecessary(input and output are same) Add node. More...
#include <RemoveUnnecessaryAddPass.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 temove unnecessary(input and output are same) Add node.
Definition at line 28 of file RemoveUnnecessaryAddPass.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 30 of file RemoveUnnecessaryAddPass.h.
|
finalvirtual |
BEFORE
[CircleNode] | | [CircleConst(=0)] | / | / [CircleAdd] (no activation) | [CircleNode]
AFTER
[CircleNode] | | [CircleNode]
Implements logo::Pass.
Definition at line 93 of file RemoveUnnecessaryAddPass.cpp.
References loco::active_nodes(), and loco::output_nodes().
Referenced by package.infer.session::inference().