ONE - On-device Neural Engine
|
#include <ReduceLayer.h>
Public Member Functions | |
ReduceLayer () | |
~ReduceLayer () | |
void | configure (const IPortableTensor *input, const IPortableTensor *axes, IPortableTensor *output, ReduceType reduceType, bool keep_dims) |
void | run () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
virtual void | prepare () |
Definition at line 55 of file ReduceLayer.h.
onert::backend::cpu::ops::ReduceLayer::ReduceLayer | ( | ) |
Definition at line 161 of file ReduceLayer.cc.
|
default |
void onert::backend::cpu::ops::ReduceLayer::configure | ( | const IPortableTensor * | input, |
const IPortableTensor * | axes, | ||
IPortableTensor * | output, | ||
ReduceType | reduceType, | ||
bool | keep_dims | ||
) |
Definition at line 170 of file ReduceLayer.cc.
References onert::backend::IPortableTensor::data_type(), onert::backend::cpu::ops::kAll, onert::backend::cpu::ops::kAny, onert::backend::cpu::ops::kMax, onert::backend::cpu::ops::kMin, onert::backend::cpu::ops::kProd, and onert::backend::cpu::ops::kSum.
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 209 of file ReduceLayer.cc.
References onert::backend::IPortableTensor::data_type(), onert::backend::cpu::ops::getReducerAxes(), onert::backend::IPortableTensor::getShape(), onert::backend::cpu::ops::getShape(), and onert::backend::cpu::ops::kSum.
Referenced by package.infer.session::inference().