ONE - On-device Neural Engine
|
#include <SoftMaxLayer.h>
Public Member Functions | |
SoftMaxLayer () | |
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::SoftMaxLayer | |
SoftMaxLayer () | |
void | softmaxFloat32 () |
template<typename T > | |
void | softmaxQuant8 () |
void | configure (const IPortableTensor *input, const float beta, IPortableTensor *output) |
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::SoftMaxLayer | |
const IPortableTensor * | _input |
IPortableTensor * | _output |
Definition at line 34 of file SoftMaxLayer.h.
onert::backend::train::ops::SoftMaxLayer::SoftMaxLayer | ( | ) |
Definition at line 32 of file SoftMaxLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 47 of file SoftMaxLayer.cc.
References onert::backend::cpu::ops::SoftMaxLayer::_input, onert::backend::cpu::ops::SoftMaxLayer::_output, onert::backend::IPortableTensor::data_type(), onert::backend::train::ops::getShape(), and nnfw::cker::train::SoftMaxGrad().
void onert::backend::train::ops::SoftMaxLayer::configureBackward | ( | IPortableTensor * | back_prop_input, |
const IPortableTensor * | back_prop_output | ||
) |
Definition at line 38 of file SoftMaxLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 45 of file SoftMaxLayer.cc.
References onert::backend::cpu::ops::SoftMaxLayer::run().