ONE - On-device Neural Engine
|
#include <FullyConnectedLayer.h>
Public Member Functions | |
FullyConnectedLayer () | |
~FullyConnectedLayer () | |
void | fullyConnectedFloat32 () |
void | configure (const IPortableTensor *input, const IPortableTensor *weights, const IPortableTensor *bias, 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 35 of file FullyConnectedLayer.h.
onert::backend::ruy::ops::FullyConnectedLayer::FullyConnectedLayer | ( | ) |
Definition at line 32 of file FullyConnectedLayer.cc.
|
default |
void onert::backend::ruy::ops::FullyConnectedLayer::configure | ( | const IPortableTensor * | input, |
const IPortableTensor * | weights, | ||
const IPortableTensor * | bias, | ||
ir::Activation | activation, | ||
IPortableTensor * | output, | ||
const std::shared_ptr< ExternalContext > & | external_context | ||
) |
Definition at line 61 of file FullyConnectedLayer.cc.
void onert::backend::ruy::ops::FullyConnectedLayer::fullyConnectedFloat32 | ( | ) |
Definition at line 41 of file FullyConnectedLayer.cc.
References nnfw::ruy::FullyConnectedParams::activation, onert::backend::ITensor::buffer(), onert::util::CalculateActivationRange(), onert::backend::ruy::ops::convertActivationType(), nnfw::ruy::FullyConnectedParams::float_activation_max, nnfw::ruy::FullyConnectedParams::float_activation_min, nnfw::ruy::FullyConnected(), onert::backend::ruy::ops::getTensorShape(), onert::backend::IPortableTensor::is_constant(), nnfw::ruy::FullyConnectedParams::lhs_cacheable, and nnfw::ruy::FullyConnectedParams::rhs_cacheable.
Referenced by run().
|
overridevirtual |
Reimplemented from onert::exec::IFunction.
Definition at line 86 of file FullyConnectedLayer.cc.
References onert::backend::ITensor::buffer(), nnfw::ruy::Shape::FlatSize(), onert::backend::ruy::ops::getTensorShape(), onert::backend::IPortableTensor::is_constant(), and nnfw::ruy::IsZeroVector().
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 74 of file FullyConnectedLayer.cc.
References onert::backend::IPortableTensor::data_type(), and fullyConnectedFloat32().
Referenced by package.infer.session::inference().