ONE - On-device Neural Engine
|
#include <IPermuteFunction.h>
Public Member Functions | |
virtual void | run () override |
virtual void | prepare () override |
virtual void | optimize ()=0 |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
Protected Member Functions | |
void | permute (backend::ITensor *src_tensor, backend::ITensor *dst_tensor, size_t rank, std::vector< size_t > &src_offsets, std::vector< size_t > &dst_offsets, const ir::PermuteType &permute_type) |
const std::type_info & | underlying_type (ir::DataType type) const |
Protected Attributes | |
std::vector< backend::ITensor * > | _src_tensors |
std::vector< backend::ITensor * > | _dst_tensors |
std::vector< std::vector< size_t > > | _src_tensors_offsets |
std::vector< std::vector< size_t > > | _dst_tensors_offsets |
std::vector< ir::PermuteType > | _permute_types |
std::unordered_map< const backend::ITensor *, std::vector< uint8_t > > | _buffers_map |
Definition at line 67 of file IPermuteFunction.h.
|
pure virtual |
Implemented in onert::backend::builtin::kernel::PermuteLayer, onert::backend::builtin::train::kernel::PermuteLayer, and onert::exec::PermuteLayer.
Referenced by prepare().
|
protected |
Definition at line 240 of file IPermuteFunction.cc.
References onert::backend::ITensor::data_type(), onert::backend::ITensor::total_size(), and underlying_type().
Referenced by onert::backend::builtin::train::kernel::PermuteLayer::backward(), and onert::backend::builtin::kernel::PermuteLayer::run().
|
inlineoverridevirtual |
Reimplemented from onert::exec::IFunction.
Definition at line 72 of file IPermuteFunction.h.
References optimize().
|
overridevirtual |
Implements onert::exec::IFunction.
Reimplemented in onert::backend::builtin::kernel::PermuteLayer.
Referenced by package.infer.session::inference().
|
protected |
Definition at line 290 of file IPermuteFunction.cc.
Referenced by onert::backend::builtin::kernel::PermuteLayer::optimize(), permute(), and onert::backend::builtin::kernel::PermuteLayer::run().
|
protected |
Definition at line 247 of file IPermuteFunction.h.
Referenced by onert::backend::builtin::kernel::PermuteLayer::run().
|
protected |
|
protected |
Definition at line 245 of file IPermuteFunction.h.
Referenced by onert::backend::builtin::train::kernel::PermuteLayer::backward(), onert::backend::builtin::kernel::PermuteLayer::optimize(), onert::backend::builtin::kernel::PermuteLayer::PermuteLayer(), and onert::backend::builtin::kernel::PermuteLayer::run().
|
protected |
Definition at line 246 of file IPermuteFunction.h.
Referenced by onert::backend::builtin::train::kernel::PermuteLayer::backward(), onert::backend::builtin::kernel::PermuteLayer::optimize(), onert::backend::builtin::kernel::PermuteLayer::PermuteLayer(), onert::exec::PermuteLayer::PermuteLayer(), and onert::backend::builtin::kernel::PermuteLayer::run().
|
protected |
|
protected |
Definition at line 244 of file IPermuteFunction.h.
Referenced by onert::backend::builtin::train::kernel::PermuteLayer::backward(), onert::backend::builtin::kernel::PermuteLayer::optimize(), onert::backend::builtin::kernel::PermuteLayer::PermuteLayer(), and onert::backend::builtin::kernel::PermuteLayer::run().