ONE - On-device Neural Engine
|
#include <DepthwiseConvolutionLayer.h>
Public Member Functions | |
DepthwiseConvolutionLayer () | |
void | configureBackward (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::DepthwiseConvolutionLayer | |
DepthwiseConvolutionLayer ()=default | |
void | convFloat32 () |
void | convQ8uPerTensor () |
void | convQ8uPerChannel () |
void | convQ8i () |
void | convQ8iHybridPerChannel () |
void | configure (const IPortableTensor *input, const IPortableTensor *kernel, const IPortableTensor *bias, const uint32_t paddingLeft, const uint32_t paddingRight, const uint32_t paddingTop, const uint32_t paddingBottom, const uint32_t strideW, const uint32_t strideH, const uint32_t multiplier, const uint32_t dilationWidth, const uint32_t dilationHeight, const ir::Activation activation, IPortableTensor *output, const std::shared_ptr< ExternalContext > &external_context) |
void | run () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
virtual void | prepare () |
Additional Inherited Members | |
Protected Attributes inherited from onert::backend::cpu::ops::DepthwiseConvolutionLayer | |
const IPortableTensor * | _input {nullptr} |
const IPortableTensor * | _kernel {nullptr} |
const IPortableTensor * | _bias {nullptr} |
IPortableTensor * | _output {nullptr} |
uint32_t | _paddingLeft {0} |
uint32_t | _paddingTop {0} |
uint32_t | _paddingRight {0} |
uint32_t | _paddingBottom {0} |
uint32_t | _strideWidth {0} |
uint32_t | _strideHeight {0} |
uint32_t | _multiplier {0} |
uint32_t | _dilationWidth {1} |
uint32_t | _dilationHeight {1} |
ir::Activation | _activation {ir::Activation::NONE} |
bool | _use_padded_filter {false} |
std::unique_ptr< Tensor > | _padded_filter {nullptr} |
std::unique_ptr< Tensor > | _filter_buffers {nullptr} |
Definition at line 36 of file DepthwiseConvolutionLayer.h.
onert::backend::train::ops::DepthwiseConvolutionLayer::DepthwiseConvolutionLayer | ( | ) |
Definition at line 34 of file DepthwiseConvolutionLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 96 of file DepthwiseConvolutionLayer.cc.
References onert::backend::cpu::ops::DepthwiseConvolutionLayer::_input, and onert::backend::IPortableTensor::data_type().
void onert::backend::train::ops::DepthwiseConvolutionLayer::configureBackward | ( | IPortableTensor * | back_prop_input, |
IPortableTensor * | grad_weights, | ||
IPortableTensor * | grad_bias, | ||
const IPortableTensor * | back_prop_output, | ||
const ir::Activation | activation | ||
) |
Definition at line 42 of file DepthwiseConvolutionLayer.cc.
References onert::backend::cpu::ops::DepthwiseConvolutionLayer::_dilationHeight, onert::backend::cpu::ops::DepthwiseConvolutionLayer::_dilationWidth, onert::backend::IPortableTensor::data_type(), onert::backend::IPortableTensor::get_info(), onert::backend::train::ops::getShape(), nnfw::cker::eigen_support::getThreadCount(), and onert::ir::NONE.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 94 of file DepthwiseConvolutionLayer.cc.
References onert::backend::cpu::ops::DepthwiseConvolutionLayer::run().