ONE - On-device Neural Engine
|
#include <ConvolutionLayer.h>
Public Member Functions | |
ConvolutionLayer (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 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 33 of file ConvolutionLayer.h.
onert::backend::xnnpack::ops::ConvolutionLayer::ConvolutionLayer | ( | const std::shared_ptr< ExternalContext > | external_context | ) |
Definition at line 29 of file ConvolutionLayer.cc.
void onert::backend::xnnpack::ops::ConvolutionLayer::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 | dilation_width_factor, | ||
const uint32_t | dilation_height_factor, | ||
const ir::Activation | activation, | ||
IPortableTensor * | output | ||
) |
Definition at line 38 of file ConvolutionLayer.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 89 of file ConvolutionLayer.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 66 of file ConvolutionLayer.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 120 of file ConvolutionLayer.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().