ONE - On-device Neural Engine
|
#include <PadLayer.h>
Public Member Functions | |
PadLayer () | |
template<typename T > | |
void | depad () |
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::PadLayer | |
PadLayer () | |
template<typename T > | |
void | padImpl (const T *constant_value_data) |
void | configure (const IPortableTensor *input, const IPortableTensor *pad, const IPortableTensor *value, 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::PadLayer | |
const IPortableTensor * | _input |
const IPortableTensor * | _pad |
const IPortableTensor * | _value |
IPortableTensor * | _output |
ConstDataPtr | _constantValueData |
Definition at line 37 of file PadLayer.h.
onert::backend::train::ops::PadLayer::PadLayer | ( | ) |
Definition at line 30 of file PadLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 55 of file PadLayer.cc.
References onert::backend::IPortableTensor::data_type().
void onert::backend::train::ops::PadLayer::configureBackward | ( | IPortableTensor * | back_prop_input, |
const IPortableTensor * | back_prop_output | ||
) |
Definition at line 46 of file PadLayer.cc.
void onert::backend::train::ops::PadLayer::depad | ( | ) |
Definition at line 35 of file PadLayer.cc.
References onert::backend::cpu::ops::PadLayer::_pad, onert::backend::ITensor::buffer(), onert::backend::IPortableTensor::data_type(), onert::backend::IPortableTensor::getShape(), and onert::backend::train::ops::getShape().
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 53 of file PadLayer.cc.
References onert::backend::cpu::ops::PadLayer::run().