|
ONE - On-device Neural Engine
|
#include <NEReduceOperation.h>

Public Member Functions | |
| NEReduceOperation (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
| void | configure (ITensor *input, const Coordinates &reduction_axis, bool keep_dims, ITensor *output, ReductionOperation op) |
| void | run () override |
Static Public Member Functions | |
| static Status | validate (const ITensorInfo *input, const Coordinates &reduction_axis, bool keep_dims, const ITensorInfo *output, ReductionOperation op) |
Basic function to perform reduce operation
Definition at line 58 of file NEReduceOperation.h.
| NEReduceOperation::NEReduceOperation | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Constructor
Definition at line 53 of file NEReduceOperation.cpp.
| void NEReduceOperation::configure | ( | ITensor * | input, |
| const Coordinates & | reduction_axis, | ||
| bool | keep_dims, | ||
| ITensor * | output, | ||
| ReductionOperation | op | ||
| ) |
Configure kernel
| [in] | input | Source tensor. Data type supported: QASYMM8/F16/F32 |
| [in] | reduction_axis | Reduction axis vector. |
| [in] | keep_dims | If positive, retains reduced dimensions with length 1. |
| [out] | output | Destination tensor. Data type supported: Same as input |
| [in] | op | Reduce operation to perform. |
Definition at line 106 of file NEReduceOperation.cpp.
References info.
|
override |
Definition at line 171 of file NEReduceOperation.cpp.
|
static |
Static function to check if given info will lead to a valid configuration of NEReduceOperation
| [in] | input | Source tensor. Data type supported: QASYMM8/F16/F32 |
| [in] | reduction_axis | Reduction axis vector. |
| [in] | keep_dims | If positive, retains reduced dimensions with length 1. |
| [in] | output | Destination tensor. Data type supported: Same as input |
| [in] | op | Reduce operation to perform. |
Definition at line 59 of file NEReduceOperation.cpp.