ONE - On-device Neural Engine
|
Use the input of "TFIdentity" node instead. More...
#include <RemoveTFIdentityNode.h>
Public Member Functions | |
const char * | name (void) const final |
bool | run (loco::Graph *g) final |
Run the pass. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Use the input of "TFIdentity" node instead.
BEFORE: [X] -> [TFIdentity] -> [Y]
AFTER: [X] -> [Y] [TFIdentity]
NOTE This transform does not remove "TFIdentity" node This transform is identical to RemoveForwardNode
Definition at line 40 of file RemoveTFIdentityNode.h.
|
inlinefinalvirtual |
Reimplemented from logo::Pass.
Definition at line 42 of file RemoveTFIdentityNode.h.
|
finalvirtual |
Run the pass.
Implements logo::Pass.
Definition at line 27 of file RemoveTFIdentityNode.cpp.
References moco::TFNode::accept(), loco::all_nodes(), moco::TFDialect::get(), moco::TFIdentity::input(), and loco::Subst< SubstQualifier::Default >::with().
Referenced by package.infer.session::inference().