ONE - On-device Neural Engine
|
Merge concat nodes whose axis and fusedActivationFunction are same. More...
#include <MergeConcatNodesPass.h>
Public Member Functions | |
virtual const char * | name (void) const |
bool | run (loco::Graph *graph) |
Merge TFLConcatenate nodes whose axis and fusedActivationFunction are same. | |
Public Member Functions inherited from logo::Pass | |
virtual | ~Pass ()=default |
Merge concat nodes whose axis and fusedActivationFunction are same.
Definition at line 30 of file MergeConcatNodesPass.h.
|
inlinevirtual |
Reimplemented from logo::Pass.
Definition at line 33 of file MergeConcatNodesPass.h.
|
virtual |
Merge TFLConcatenate nodes whose axis and fusedActivationFunction are same.
[Before] in:0 ----------------------------—\ in:1 -— TFLConcatenation:0 -----— TFLConcatenation:3 — C (axis = 0, NONE) (axis = 0, NONE) in:2 —/ / in:3 -— TFLConcatenation:1 ---—/ (axis = 1, NONE) / in:4 —/ / in:5 -— TFLConcatenation:2 —/ (axis = 0, RELU) in:6 —/
[After] in:0 ----------------------------—\ in:1 -----------------------------— TFLConcatenation:4 — C (axis = 0, NONE) in:2 ----------------------------—/ in:3 -— TFLConcatenation:1 ---—/ (axis = 1, NONE) / in:4 —/ / in:5 -— TFLConcatenation:2 —/ (axis = 0, RELU) in:6 —/
in:1 -— TFLConcatenation:0 -— (axis = 0, NONE) in:2 —/
---- TFLConcatenation:3 ---- (axis = 0, NONE)
Implements logo::Pass.
Definition at line 147 of file MergeConcatNodesPass.cpp.
References loco::active_nodes(), locoex::TFLConcatenation::axis(), loco::output_nodes(), loco::replace(), and loco::Subst< SubstQualifier::Default >::with().
Referenced by package.infer.session::inference().