ONE - On-device Neural Engine
|
Pass to insert permutation operations for input and output for layout and/or data type conversions. More...
#include <PermutationIOPass.h>
Public Member Functions | |
PermutationIOPass (ir::Graph &graph, const CompilerOptions &options) | |
std::string | id () override |
void | run () override |
![]() | |
Pass (ir::Graph &graph) | |
virtual | ~Pass ()=default |
![]() | |
virtual | ~IPass ()=default |
Additional Inherited Members | |
![]() | |
ir::Graph & | _graph |
Pass to insert permutation operations for input and output for layout and/or data type conversions.
If actual layout or data type of input/output by user request is different with model's layout or data type, this pass will insert permutation operations for input/output nodes.
If actual layout and data type of input/output by user request is same with model's layout and data type, this pass does nothing.
Definition at line 42 of file PermutationIOPass.h.
|
inline |
Definition at line 46 of file PermutationIOPass.h.
|
inlineoverridevirtual |
Implements onert::compiler::pass::Pass.
Definition at line 52 of file PermutationIOPass.h.
|
overridevirtual |
Implements onert::compiler::pass::Pass.
Definition at line 29 of file PermutationIOPass.cc.
References onert::compiler::pass::Pass::_graph, onert::util::ObjectManager< Index, Object >::at(), onert::ir::OperandIndexSequence::at(), onert::ir::Graph::getInputs(), onert::ir::Graph::getOutputs(), onert::compiler::CompilerOptions::input_layout, onert::compiler::CompilerOptions::input_type, onert::ir::NHWC, onert::ir::Graph::operands(), onert::compiler::CompilerOptions::output_layout, onert::compiler::CompilerOptions::output_type, and size.