ONE - On-device Neural Engine
|
#include <PermuteLayer.h>
Public Member Functions | |
PermuteLayer (const std::vector< ITensor * > &src_tensors, const std::vector< ITensor * > &dst_tensors, const std::vector< ITensor * > &input_back_prop_tensors, const std::vector< ITensor * > &output_back_prop_tensors, const std::vector< ir::PermuteType > &types, bool ignore_forward_in_training, const std::shared_ptr< ExternalContext > &external_context) | |
void | optimize () override |
void | forward (bool training) override |
void | backward () override |
Public Member Functions inherited from onert::backend::builtin::kernel::PermuteLayer | |
PermuteLayer (const std::vector< ITensor * > &src_tensors, const std::vector< ITensor * > &dst_tensors, const std::vector< ir::PermuteType > &types, const std::shared_ptr< ExternalContext > &external_context) | |
void | run () override |
Public Member Functions inherited from onert::exec::IPermuteFunction | |
virtual void | prepare () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
Public Member Functions inherited from onert::exec::train::ITrainableFunction | |
virtual | ~ITrainableFunction ()=default |
virtual std::optional< backend::train::LayerScopeTensors > | registerLayerScopeTensors () |
Additional Inherited Members | |
Protected Member Functions inherited from onert::exec::IPermuteFunction | |
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 inherited from onert::exec::IPermuteFunction | |
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 35 of file PermuteLayer.h.
onert::backend::builtin::train::kernel::PermuteLayer::PermuteLayer | ( | const std::vector< ITensor * > & | src_tensors, |
const std::vector< ITensor * > & | dst_tensors, | ||
const std::vector< ITensor * > & | input_back_prop_tensors, | ||
const std::vector< ITensor * > & | output_back_prop_tensors, | ||
const std::vector< ir::PermuteType > & | types, | ||
bool | ignore_forward_in_training, | ||
const std::shared_ptr< ExternalContext > & | external_context | ||
) |
Definition at line 32 of file PermuteLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 63 of file PermuteLayer.cc.
References onert::exec::IPermuteFunction::_dst_tensors_offsets, onert::exec::IPermuteFunction::_permute_types, onert::exec::IPermuteFunction::_src_tensors_offsets, and onert::exec::IPermuteFunction::permute().
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 55 of file PermuteLayer.cc.
References onert::backend::builtin::kernel::PermuteLayer::run().
|
overridevirtual |
Reimplemented from onert::backend::builtin::kernel::PermuteLayer.
Definition at line 48 of file PermuteLayer.cc.
References onert::backend::builtin::kernel::PermuteLayer::optimize().