ONE - On-device Neural Engine
|
This pass combines sequential transposes and removes identity transposes if the combination results in an identity permutation. More...
#include <CombineTransposes.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 combines sequential transposes and removes identity transposes if the combination results in an identity permutation.
Definition at line 30 of file CombineTransposes.h.
|
inlineoverridevirtual |
Reimplemented from nnc::Pass.
Definition at line 35 of file CombineTransposes.h.
|
overridevirtual |
run compiler pass
data | - data that pass is taken |
PassException | object if errors occured |
Implements nnc::Pass.
Definition at line 52 of file CombineTransposes.cpp.
References nnc::combineAxisOrders(), mir::Operation::getInput(), mir::Operation::Output::getNode(), and mir::GraphPatternMatcher::matchEdge().
Referenced by package.infer.session::inference().