ONE - On-device Neural Engine
|
#include <LossLayer.h>
Public Member Functions | |
LossLayer () | |
void | configure (const IPortableTensor *y_pred, const IPortableTensor *y_true, IPortableTensor *output, IPortableTensor *back_prop_y_pred, ir::train::LossReductionType reduction_type) |
Public Member Functions inherited from onert::exec::train::ITrainableFunction | |
virtual | ~ITrainableFunction ()=default |
virtual void | forward (bool training)=0 |
virtual void | backward ()=0 |
virtual std::optional< backend::train::LayerScopeTensors > | registerLayerScopeTensors () |
Protected Attributes | |
const IPortableTensor * | _y_pred |
const IPortableTensor * | _y_true |
IPortableTensor * | _output |
IPortableTensor * | _back_prop_y_pred |
ir::train::LossReductionType | _reduction_type |
Definition at line 40 of file LossLayer.h.
onert::backend::train::ops::LossLayer::LossLayer | ( | ) |
Definition at line 28 of file LossLayer.cc.
void onert::backend::train::ops::LossLayer::configure | ( | const IPortableTensor * | y_pred, |
const IPortableTensor * | y_true, | ||
IPortableTensor * | output, | ||
IPortableTensor * | back_prop_y_pred, | ||
ir::train::LossReductionType | reduction_type | ||
) |
Definition at line 35 of file LossLayer.cc.
References _back_prop_y_pred, _output, _reduction_type, _y_pred, and _y_true.
Referenced by onert::backend::train::ops::LossMeanSquaredErrorLayer::configure(), and onert::backend::train::ops::LossCategoricalCrossentropyLayer::configure().
|
protected |
Definition at line 53 of file LossLayer.h.
Referenced by onert::backend::train::ops::LossCategoricalCrossentropyLayer::backward(), onert::backend::train::ops::LossMeanSquaredErrorLayer::backward(), and configure().
|
protected |
|
protected |
Definition at line 54 of file LossLayer.h.
Referenced by onert::backend::train::ops::LossCategoricalCrossentropyLayer::backward(), onert::backend::train::ops::LossMeanSquaredErrorLayer::backward(), and configure().
|
protected |
Definition at line 50 of file LossLayer.h.
Referenced by onert::backend::train::ops::LossCategoricalCrossentropyLayer::backward(), onert::backend::train::ops::LossMeanSquaredErrorLayer::backward(), configure(), onert::backend::train::ops::LossCategoricalCrossentropyLayer::forward(), and onert::backend::train::ops::LossMeanSquaredErrorLayer::forward().
|
protected |
Definition at line 51 of file LossLayer.h.
Referenced by onert::backend::train::ops::LossCategoricalCrossentropyLayer::backward(), onert::backend::train::ops::LossMeanSquaredErrorLayer::backward(), configure(), onert::backend::train::ops::LossCategoricalCrossentropyLayer::forward(), and onert::backend::train::ops::LossMeanSquaredErrorLayer::forward().