ONE - On-device Neural Engine
|
#include <FullyConnectedLayer.h>
Public Member Functions | |
FullyConnectedLayer (const std::shared_ptr< ExternalContext > external_context) | |
void | configure (const IPortableTensor *input, const IPortableTensor *_kernel, const IPortableTensor *bias, 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 FullyConnectedLayer.h.
onert::backend::xnnpack::ops::FullyConnectedLayer::FullyConnectedLayer | ( | const std::shared_ptr< ExternalContext > | external_context | ) |
Definition at line 30 of file FullyConnectedLayer.cc.
void onert::backend::xnnpack::ops::FullyConnectedLayer::configure | ( | const IPortableTensor * | input, |
const IPortableTensor * | _kernel, | ||
const IPortableTensor * | bias, | ||
ir::Activation | activation, | ||
IPortableTensor * | output | ||
) |
Definition at line 37 of file FullyConnectedLayer.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 74 of file FullyConnectedLayer.cc.
References onert::backend::xnnpack::ops::Layer::_kernel_op, onert::backend::ITensor::buffer(), onert::backend::IPortableTensor::getShape(), and output_shape.
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 51 of file FullyConnectedLayer.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 113 of file FullyConnectedLayer.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().