ONE - On-device Neural Engine
|
This pass sinks transposes below Relu and Concat nodes (in that order). ‘concat(relu(tr(x)), relu(tr(y))) -> tr(concat’(relu(x), relu(y)))`. More...
#include <SinkTranspose.h>
Public Member Functions | |
PassData | run (PassData data) override |
run compiler pass | |
std::string | getName () override |
Public Member Functions inherited from nnc::Pass | |
virtual void | cleanup () |
clean compiler pass data | |
virtual | ~Pass ()=default |
This pass sinks transposes below Relu and Concat nodes (in that order). ‘concat(relu(tr(x)), relu(tr(y))) -> tr(concat’(relu(x), relu(y)))`.
Definition at line 30 of file SinkTranspose.h.
|
inlineoverridevirtual |
Reimplemented from nnc::Pass.
Definition at line 35 of file SinkTranspose.h.
run compiler pass
data | - data that pass is taken |
PassException | object if errors occured |
Implements nnc::Pass.
Definition at line 34 of file SinkTranspose.cpp.
References mir::GraphPatternMatcher::matchEdge(), mir::GraphPatternMatcher::matchUpBush(), nnc::opt_util::removeNodeIfUnused(), and nnc::opt_util::swapAdjacent().
Referenced by package.infer.session::inference().