ONE - On-device Neural Engine
|
Class to represent Permute operation. More...
#include <Permute.h>
Class to represent Permute operation.
This operation is virtual operation, which is not used on real model, but used internally. This operation is used for below cases. But currently, model layout and backend layout are always same as NHWC. So this operation is used for below cases. 1) Handle model output buffer's special case 1-1) Model output is comes from model constant 1-2) Model output is comes from model input 1-3) Model output shares tensor with other model output(s) 2) Handle when tensor defining backend is different with tensor using backend 3) Handle when actual input and/or output layouts are different with model layout by user setting 4) Handle when actual input and/or output data type is different with model data type by user setting or model connection
onert::ir::operation::Permute::Permute | ( | const OperandIndex & | input, |
const OperandIndex & | output, | ||
ir::PermuteType | type | ||
) |
Definition at line 25 of file Permute.cc.
References onert::ir::Operation::setInputs(), and onert::ir::Operation::setOutputs().
|
overridevirtual |
Implements onert::ir::IOperation.
Reimplemented in onert::ir::train::operation::Permute.
Definition at line 23 of file Permute.cc.
|
inline |
Definition at line 59 of file Permute.h.
Referenced by onert::exec::DynamicShapeInferer::visit(), and onert::ir::OperationDumper::visit().
|
inlinefinalvirtual |
Implements onert::ir::IOperation.
Definition at line 53 of file Permute.h.