ONE - On-device Neural Engine
|
#include <PadLayer.h>
Public Member Functions | |
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 () |
Protected Attributes | |
const IPortableTensor * | _input |
const IPortableTensor * | _pad |
const IPortableTensor * | _value |
IPortableTensor * | _output |
ConstDataPtr | _constantValueData |
Definition at line 36 of file PadLayer.h.
onert::backend::cpu::ops::PadLayer::PadLayer | ( | ) |
Definition at line 30 of file PadLayer.cc.
void onert::backend::cpu::ops::PadLayer::configure | ( | const IPortableTensor * | input, |
const IPortableTensor * | pad, | ||
const IPortableTensor * | value, | ||
IPortableTensor * | output | ||
) |
Definition at line 46 of file PadLayer.cc.
void onert::backend::cpu::ops::PadLayer::padImpl | ( | const T * | constant_value_data | ) |
Definition at line 36 of file PadLayer.cc.
References _input, _output, _pad, onert::backend::ITensor::buffer(), onert::backend::IPortableTensor::data_type(), onert::backend::IPortableTensor::getShape(), and onert::backend::cpu::ops::getShape().
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 55 of file PadLayer.cc.
References _constantValueData, _input, _output, _value, onert::backend::ITensor::buffer(), onert::backend::IPortableTensor::data_type(), onert::backend::IPortableTensor::data_zero_point(), onert::backend::cpu::ops::ConstDataPtr::f, onert::backend::cpu::ops::ConstDataPtr::i8, onert::backend::cpu::ops::ConstDataPtr::u8, and onert::backend::cpu::ops::ConstDataPtr::v.
Referenced by onert::backend::train::ops::PadLayer::forward(), and package.infer.session::inference().
|
protected |
Definition at line 54 of file PadLayer.h.
Referenced by run().
|
protected |
Definition at line 50 of file PadLayer.h.
Referenced by configure(), padImpl(), and run().
|
protected |
Definition at line 53 of file PadLayer.h.
Referenced by configure(), padImpl(), and run().
|
protected |
Definition at line 51 of file PadLayer.h.
Referenced by configure(), onert::backend::train::ops::PadLayer::depad(), and padImpl().
|
protected |
Definition at line 52 of file PadLayer.h.
Referenced by configure(), and run().