ONE - On-device Neural Engine
|
#include <PoolLayer.h>
Public Member Functions | |
PoolLayer () | |
void | configureBackward (const uint32_t paddingLeft, const uint32_t paddingRight, const uint32_t paddingTop, const uint32_t paddingBottom, const uint32_t strideWidth, const uint32_t strideHeight, const uint32_t kernelWidth, const uint32_t kernelHeight, const ir::Activation activation, const PoolType op_type, IPortableTensor *output, 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::PoolLayer | |
PoolLayer () | |
void | configure (const IPortableTensor *input, const uint32_t paddingLeft, const uint32_t paddingRight, const uint32_t paddingTop, const uint32_t paddingBottom, const uint32_t strideWidth, const uint32_t strideHeight, const uint32_t kernelWidth, const uint32_t kernelHeight, const ir::Activation activation, IPortableTensor *output, const PoolType op_type) |
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::PoolLayer | |
const IPortableTensor * | _input |
IPortableTensor * | _output |
Definition at line 51 of file PoolLayer.h.
onert::backend::train::ops::PoolLayer::PoolLayer | ( | ) |
Definition at line 188 of file PoolLayer.cc.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 240 of file PoolLayer.cc.
void onert::backend::train::ops::PoolLayer::configureBackward | ( | const uint32_t | paddingLeft, |
const uint32_t | paddingRight, | ||
const uint32_t | paddingTop, | ||
const uint32_t | paddingBottom, | ||
const uint32_t | strideWidth, | ||
const uint32_t | strideHeight, | ||
const uint32_t | kernelWidth, | ||
const uint32_t | kernelHeight, | ||
const ir::Activation | activation, | ||
const PoolType | op_type, | ||
IPortableTensor * | output, | ||
IPortableTensor * | back_prop_input, | ||
const IPortableTensor * | back_prop_output | ||
) |
Definition at line 194 of file PoolLayer.cc.
References onert::backend::train::ops::kAvg, and onert::backend::train::ops::kMax.
|
overridevirtual |
Implements onert::exec::train::ITrainableFunction.
Definition at line 228 of file PoolLayer.cc.
References onert::backend::cpu::ops::PoolLayer::_input, onert::backend::cpu::ops::PoolLayer::_output, and onert::backend::cpu::ops::PoolLayer::run().