ONE - On-device Neural Engine
|
#include <ConvolutionLayer.h>
Public Member Functions | |
ConvolutionLayer () | |
~ConvolutionLayer () | |
void | convFloat32 () |
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, const std::shared_ptr< ExternalContext > &external_context) |
void | run () override |
void | prepare () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
Definition at line 38 of file ConvolutionLayer.h.
onert::backend::ruy::ops::ConvolutionLayer::ConvolutionLayer | ( | ) |
Definition at line 30 of file ConvolutionLayer.cc.
|
default |
void onert::backend::ruy::ops::ConvolutionLayer::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, | ||
const std::shared_ptr< ExternalContext > & | external_context | ||
) |
Definition at line 66 of file ConvolutionLayer.cc.
void onert::backend::ruy::ops::ConvolutionLayer::convFloat32 | ( | ) |
Definition at line 42 of file ConvolutionLayer.cc.
References onert::backend::ITensor::buffer(), onert::util::CalculateActivationRange(), nnfw::ruy::ConvParams::dilation_height_factor, nnfw::ruy::ConvParams::dilation_width_factor, nnfw::ruy::ConvParams::float_activation_max, nnfw::ruy::ConvParams::float_activation_min, onert::backend::ruy::ops::getTensorShape(), nnfw::ruy::PaddingValues::height, nnfw::ruy::ConvParams::padding_type, nnfw::ruy::ConvParams::padding_values, nnfw::ruy::ConvParams::stride_height, nnfw::ruy::ConvParams::stride_width, and nnfw::ruy::PaddingValues::width.
Referenced by run().
|
overridevirtual |
Reimplemented from onert::exec::IFunction.
Definition at line 136 of file ConvolutionLayer.cc.
References onert::backend::IPortableTensor::data_type(), onert::backend::ruy::ops::getTensorShape(), onert::backend::IPortableTensor::is_constant(), and nnfw::ruy::Conv::prepare().
Referenced by run().
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 93 of file ConvolutionLayer.cc.
References onert::ir::ExplicitPadding::bottom, onert::ir::calculatePadding(), convFloat32(), onert::backend::IPortableTensor::data_type(), onert::backend::IPortableTensor::getShape(), onert::ir::Stride::horizontal, onert::backend::IPortableTensor::is_dynamic(), onert::ir::ExplicitPadding::left, onert::ir::Padding::param, prepare(), onert::ir::ExplicitPadding::right, onert::ir::ExplicitPadding::top, onert::ir::Padding::type, and onert::ir::Stride::vertical.
Referenced by package.infer.session::inference().