ONE - On-device Neural Engine
|
#include <ConvolutionLayer.h>
Public Member Functions | |
ConvolutionLayer () | |
~ConvolutionLayer () | |
void | configureBackward (const IPortableTensor *weights, IPortableTensor *back_prop_input, IPortableTensor *grad_weights, IPortableTensor *grad_bias, const IPortableTensor *back_prop_output, const ir::Activation activation) |
void | forward (bool training) override |
void | backward () override |
Public Member Functions inherited from onert::exec::train::ITrainableFunction | |
virtual | ~ITrainableFunction ()=default |
virtual std::optional< backend::train::LayerScopeTensors > | registerLayerScopeTensors () |
Public Member Functions inherited from onert::backend::cpu::ops::ConvolutionLayer | |
ConvolutionLayer () | |
~ConvolutionLayer () | |
void | configure (const IPortableTensor *input, const IPortableTensor *kernel, const IPortableTensor *bias, ir::PaddingType _paddingType, const uint32_t paddingLeft, const uint32_t paddingRight, const uint32_t paddingTop, const uint32_t paddingBottom, const uint32_t strideWidth, const uint32_t strideHeight, const uint32_t dilationWidthFactor, const uint32_t dilationHeightFactor, const ir::Activation activation, IPortableTensor *output, bool is_cachable_weights) |
void | prepare () override |
void | run () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
Additional Inherited Members | |
Protected Attributes inherited from onert::backend::cpu::ops::ConvolutionLayer | |
const IPortableTensor * | _input |
const IPortableTensor * | _kernel |
const IPortableTensor * | _bias |
IPortableTensor * | _output |
ir::PaddingType | _paddingType |
uint32_t | _paddingLeft |
uint32_t | _paddingTop |
uint32_t | _paddingRight |
uint32_t | _paddingBottom |
uint32_t | _strideWidth |
uint32_t | _strideHeight |
uint32_t | _dilationWidthFactor |
uint32_t | _dilationHeightFactor |
ir::Activation | _activation |
std::unique_ptr< nnfw::cker::Conv > | _conv_kernel |
std::unique_ptr< nnfw::cker::ConvHybridTempArena > | _hybrid_arena |
bool | _prepare |
bool | _is_cachable_weights |
bool | _is_hybrid |
Definition at line 34 of file ConvolutionLayer.h.
onert::backend::train::ops::ConvolutionLayer::ConvolutionLayer | ( | ) |
Definition at line 59 of file ConvolutionLayer.cc.
|
default |
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 104 of file ConvolutionLayer.cc.
References onert::backend::cpu::ops::ConvolutionLayer::_input, and onert::backend::IPortableTensor::data_type().
void onert::backend::train::ops::ConvolutionLayer::configureBackward | ( | const IPortableTensor * | weights, |
IPortableTensor * | back_prop_input, | ||
IPortableTensor * | grad_weights, | ||
IPortableTensor * | grad_bias, | ||
const IPortableTensor * | back_prop_output, | ||
const ir::Activation | activation | ||
) |
Definition at line 68 of file ConvolutionLayer.cc.
References onert::backend::cpu::ops::ConvolutionLayer::_dilationHeightFactor, onert::backend::cpu::ops::ConvolutionLayer::_dilationWidthFactor, onert::backend::IPortableTensor::get_info(), and onert::ir::NONE.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 103 of file ConvolutionLayer.cc.
References onert::backend::cpu::ops::ConvolutionLayer::run().