ONE - On-device Neural Engine
|
#include <MeanLayer.h>
Public Member Functions | |
MeanLayer () | |
void | MeanFloat32 () |
void | MeanQuant8 () |
void | configure (const IPortableTensor *input, const IPortableTensor *axes, IPortableTensor *output, bool keep_dims) |
void | run () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
virtual void | prepare () |
Protected Attributes | |
const IPortableTensor * | _input |
const IPortableTensor * | _axes |
IPortableTensor * | _output |
bool | _keep_dims |
Definition at line 33 of file MeanLayer.h.
onert::backend::cpu::ops::MeanLayer::MeanLayer | ( | ) |
Definition at line 32 of file MeanLayer.cc.
void onert::backend::cpu::ops::MeanLayer::configure | ( | const IPortableTensor * | input, |
const IPortableTensor * | axes, | ||
IPortableTensor * | output, | ||
bool | keep_dims | ||
) |
Definition at line 64 of file MeanLayer.cc.
References _axes, _input, _keep_dims, _output, and onert::backend::IPortableTensor::data_type().
void onert::backend::cpu::ops::MeanLayer::MeanFloat32 | ( | ) |
Definition at line 37 of file MeanLayer.cc.
References _axes, _input, _keep_dims, _output, onert::backend::cpu::ops::getReducerAxes(), onert::backend::cpu::ops::getShape(), nnfw::cker::Mean(), and nnfw::cker::MeanAxis1And2().
Referenced by run().
void onert::backend::cpu::ops::MeanLayer::MeanQuant8 | ( | ) |
Definition at line 57 of file MeanLayer.cc.
References _axes, _input, _output, onert::backend::IPortableTensor::data_scale(), onert::backend::IPortableTensor::data_zero_point(), onert::backend::cpu::ops::getReducerAxes(), onert::backend::cpu::ops::getShape(), and nnfw::cker::MeanQ8Asymm().
Referenced by run().
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 77 of file MeanLayer.cc.
References _input, onert::backend::IPortableTensor::data_type(), MeanFloat32(), and MeanQuant8().
Referenced by onert::backend::train::ops::MeanLayer::forward(), and package.infer.session::inference().
|
protected |
Definition at line 50 of file MeanLayer.h.
Referenced by onert::backend::train::ops::MeanLayer::backward(), configure(), MeanFloat32(), and MeanQuant8().
|
protected |
Definition at line 49 of file MeanLayer.h.
Referenced by onert::backend::train::ops::MeanLayer::backward(), configure(), MeanFloat32(), MeanQuant8(), and run().
|
protected |
Definition at line 52 of file MeanLayer.h.
Referenced by onert::backend::train::ops::MeanLayer::backward(), configure(), and MeanFloat32().
|
protected |
Definition at line 51 of file MeanLayer.h.
Referenced by configure(), MeanFloat32(), and MeanQuant8().