ONE - On-device Neural Engine
|
#include <MeanLayer.h>
Public Member Functions | |
MeanLayer () | |
void | configureBackward (IPortableTensor *back_prop_input, const IPortableTensor *back_prop_output) |
void | forward (bool training) override |
void | backward () override |
Public Member Functions inherited from onert::exec::train::ITrainableFunction | |
virtual | ~ITrainableFunction ()=default |
virtual std::optional< backend::train::LayerScopeTensors > | registerLayerScopeTensors () |
Public Member Functions inherited from onert::backend::cpu::ops::MeanLayer | |
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 () |
Additional Inherited Members | |
Protected Attributes inherited from onert::backend::cpu::ops::MeanLayer | |
const IPortableTensor * | _input |
const IPortableTensor * | _axes |
IPortableTensor * | _output |
bool | _keep_dims |
Definition at line 34 of file MeanLayer.h.
onert::backend::train::ops::MeanLayer::MeanLayer | ( | ) |
Definition at line 34 of file MeanLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 49 of file MeanLayer.cc.
References onert::backend::cpu::ops::MeanLayer::_axes, onert::backend::cpu::ops::MeanLayer::_input, onert::backend::cpu::ops::MeanLayer::_keep_dims, onert::backend::IPortableTensor::data_type(), onert::backend::cpu::ops::getReducerAxes(), onert::backend::train::ops::getShape(), nnfw::cker::train::MeanGrad(), nnfw::cker::Shape::ReplaceWith(), and nnfw::cker::Shape::SetDim().
void onert::backend::train::ops::MeanLayer::configureBackward | ( | IPortableTensor * | back_prop_input, |
const IPortableTensor * | back_prop_output | ||
) |
Definition at line 40 of file MeanLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 47 of file MeanLayer.cc.
References onert::backend::cpu::ops::MeanLayer::run().