ONE - On-device Neural Engine
|
#include <DepthwiseConvolutionLayer.h>
Public Member Functions | |
DepthwiseConvolutionLayer (const std::shared_ptr< ExternalContext > external_context) | |
void | configure (const IPortableTensor *input, const IPortableTensor *kernel, const IPortableTensor *bias, ir::PaddingType padding_type, const uint32_t padding_left, const uint32_t padding_right, const uint32_t padding_top, const uint32_t padding_bottom, const uint32_t stride_width, const uint32_t stride_height, const uint32_t multiplier, const uint32_t dilation_width_factor, const uint32_t dilation_height_factor, const ir::Activation activation, IPortableTensor *output) |
void | run () override |
bool | create () override |
bool | setup () override |
Public Member Functions inherited from onert::backend::xnnpack::ops::Layer | |
Layer (const std::shared_ptr< ExternalContext > external_context) | |
~Layer () | |
void | prepare () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
Additional Inherited Members | |
Protected Attributes inherited from onert::backend::xnnpack::ops::Layer | |
xnn_operator_t | _kernel_op |
bool | _create |
bool | _setup |
const std::shared_ptr< ExternalContext > | _external_context |
Definition at line 31 of file DepthwiseConvolutionLayer.h.
onert::backend::xnnpack::ops::DepthwiseConvolutionLayer::DepthwiseConvolutionLayer | ( | const std::shared_ptr< ExternalContext > | external_context | ) |
Definition at line 30 of file DepthwiseConvolutionLayer.cc.
void onert::backend::xnnpack::ops::DepthwiseConvolutionLayer::configure | ( | const IPortableTensor * | input, |
const IPortableTensor * | kernel, | ||
const IPortableTensor * | bias, | ||
ir::PaddingType | padding_type, | ||
const uint32_t | padding_left, | ||
const uint32_t | padding_right, | ||
const uint32_t | padding_top, | ||
const uint32_t | padding_bottom, | ||
const uint32_t | stride_width, | ||
const uint32_t | stride_height, | ||
const uint32_t | multiplier, | ||
const uint32_t | dilation_width_factor, | ||
const uint32_t | dilation_height_factor, | ||
const ir::Activation | activation, | ||
IPortableTensor * | output | ||
) |
Definition at line 40 of file DepthwiseConvolutionLayer.cc.
References onert::ir::NONE, onert::ir::RELU, onert::ir::RELU1, and onert::ir::RELU6.
|
overridevirtual |
Implements onert::backend::xnnpack::ops::Layer.
Definition at line 90 of file DepthwiseConvolutionLayer.cc.
References onert::backend::xnnpack::ops::Layer::_kernel_op, onert::backend::ITensor::buffer(), and onert::backend::IPortableTensor::getShape().
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 67 of file DepthwiseConvolutionLayer.cc.
References onert::backend::xnnpack::ops::Layer::_external_context, onert::backend::xnnpack::ops::Layer::_kernel_op, onert::backend::xnnpack::ops::Layer::_setup, onert::backend::IPortableTensor::data_type(), and setup().
Referenced by package.infer.session::inference().
|
overridevirtual |
Implements onert::backend::xnnpack::ops::Layer.
Definition at line 121 of file DepthwiseConvolutionLayer.cc.
References onert::backend::xnnpack::ops::Layer::_external_context, onert::backend::xnnpack::ops::Layer::_kernel_op, onert::backend::ITensor::buffer(), and onert::backend::IPortableTensor::getShape().
Referenced by run().