ONE - On-device Neural Engine
|
#include <ReduceMean.h>
Public Member Functions | |
ReduceMean () | |
template<typename T > | |
int | PrepareforReduce (const Shape &input_shape, const Shape &output_shape, const std::vector< int > &axes, T *output_data, T init_value) |
template<typename In , typename Out > | |
bool | ReduceOp (const Shape &input_shape, const In *input_data, const Shape &output_shape, Out *output_data, const std::vector< int > &axes, bool, Out init_value, Out reducer(const Out current, const Out in, int normalizer)) |
template<typename In , typename Out > | |
bool | ReduceOp (const Shape &input_shape, const In *input_data, float input_scale, int32_t input_offset, const Shape &output_shape, Out *output_data, float output_scale, int32_t output_offset, const std::vector< int > &axes, bool, Out init_value, int reducer(const int current, const In in)) |
Public Member Functions inherited from nnfw::cker::Reduce | |
Reduce () | |
void | prepare (size_t temp_index_size, size_t resolved_axis_size) |
template<typename T > | |
bool | ReduceGeneric (const Shape &input_shape, const T *input_data, const Shape &output_shape, T *output_data, const std::vector< int > &axes, bool, T init_value, T reducer(const T current, const T in)) |
template<typename T , typename U > | |
bool | QuantizedMeanOrSum (const T *input_data, int32_t input_zero_point, float input_scale, const Shape &input_shape, T *output_data, int32_t output_zero_point, float output_scale, const Shape &output_shape, const std::vector< int > &axes, bool, U *temp_sum, bool compute_sum, U reducer(const U current, const T in)) |
int32_t * | resolved_axis_data (void) |
int32_t * | temp_index_data (void) |
Definition at line 111 of file ReduceMean.h.
|
inline |
Definition at line 114 of file ReduceMean.h.
|
inline |
Definition at line 117 of file ReduceMean.h.
References nnfw::cker::Shape::DimensionsCount(), nnfw::cker::Shape::DimsData(), nnfw::cker::InitTensorDataForReduce(), output_shape, nnfw::cker::Reduce::prepare(), nnfw::cker::ResolveAxis(), and nnfw::cker::Reduce::resolved_axis_data().
Referenced by ReduceOp(), and ReduceOp().
|
inline |
Definition at line 152 of file ReduceMean.h.
References output_shape, PrepareforReduce(), nnfw::cker::Reduce::resolved_axis_data(), and nnfw::cker::Reduce::temp_index_data().
Referenced by nnfw::cker::Mean(), and nnfw::cker::MeanQ8Asymm().
|
inline |
Definition at line 167 of file ReduceMean.h.
References output_shape, PrepareforReduce(), nnfw::cker::Reduce::resolved_axis_data(), nnfw::cker::round_nearest(), and nnfw::cker::Reduce::temp_index_data().