Compute Library
 22.11
ReduceMean.cpp File Reference
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/NEON/functions/NEReduceMean.h"
#include "arm_compute/runtime/Tensor.h"
#include "arm_compute/runtime/TensorAllocator.h"
#include "tests/NEON/Accessor.h"
#include "tests/datasets/ShapeDatasets.h"
#include "tests/datasets/SplitDataset.h"
#include "tests/framework/Asserts.h"
#include "tests/framework/Macros.h"
#include "tests/validation/Validation.h"
#include "tests/validation/fixtures/ReduceMeanFixture.h"

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 
 arm_compute::test
 
 arm_compute::test::validation
 

Typedefs

template<typename T >
using NEReduceMeanFixture = ReduceMeanFixture< Tensor, Accessor, NEReduceMean, T >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(framework::dataset::make("InputInfo", { TensorInfo(TensorShape(27U, 3U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 16U, 16U, 2U), 1, DataType::F32), TensorInfo(TensorShape{228U, 19U, 2U, 2U}, 1, DataType::F32), TensorInfo(TensorShape{228U, 19U, 2U, 1U}, 1, DataType::F32) }), framework::dataset::make("OutputInfo", { TensorInfo(TensorShape(27U, 3U, 1U, 2U), 1, DataType::F32), TensorInfo(TensorShape(27U, 3U, 1U, 2U), 1, DataType::F32), TensorInfo(TensorShape(32U, 16U, 1U, 2U), 1, DataType::F32), TensorInfo(TensorShape(19U), 1, DataType::F32), TensorInfo(TensorShape(19U), 1, DataType::F32) })), framework::dataset::make("Axis", { Coordinates(4), Coordinates(0, 2), Coordinates(2), Coordinates(3, 2, 0), Coordinates(3, 2, 0) })), framework::dataset::make("Keep", { true, true, true, false, false })), framework::dataset::make("Expected", { false, false, true, true, false })), input_info, output_info, axis, keep, expected)
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NEReduceMeanFixture< float >, framework::DatasetMode::PRECOMMIT, combine(combine(datasets::Small4DShapes(), framework::dataset::make("DataType", DataType::F32)), concat(axis_keep, axis_drop)))
 
 FIXTURE_DATA_TEST_CASE (RunLarge, NEReduceMeanFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(datasets::Large4DShapes(), framework::dataset::make("DataType", DataType::F32)), concat(axis_keep, axis_drop)))
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NEReduceMeanQuantizedFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::Small4DShapes(), framework::dataset::make("DataType", DataType::QASYMM8)), concat(axis_keep, axis_drop)), framework::dataset::make("QuantizationInfoInput", { QuantizationInfo(1.f/255, 5) })), framework::dataset::make("QuantizationInfoOutput", { QuantizationInfo(1.f/255, 5) })))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NEReduceMeanQuantizedFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::Small4DShapes(), framework::dataset::make("DataType", DataType::QASYMM8)), axis_drop), framework::dataset::make("QuantizationInfoInput", { QuantizationInfo(1.f/255, 5) })), framework::dataset::make("QuantizationInfoOutput", { QuantizationInfo(1.f/200, 16) })))
 
 combine (combine(combine(combine(datasets::Large4DShapes(), framework::dataset::make("DataType", DataType::QASYMM8)), concat(axis_keep, axis_drop)), framework::dataset::make("QuantizationInfoInput", { QuantizationInfo(1.f/255, 5) })), framework::dataset::make("QuantizationInfoOutput", { QuantizationInfo(1.f/255, 5) })))
 
 combine (combine(combine(combine(datasets::Small4DShapes(), framework::dataset::make("DataType", DataType::QASYMM8_SIGNED)), concat(axis_keep, axis_drop)), framework::dataset::make("QuantizationInfoInput", { QuantizationInfo(1.f/127, -10), QuantizationInfo(1.f/250, -20) })), framework::dataset::make("QuantizationInfoInputOutput", { QuantizationInfo(1.f/127, -10) })))
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NEReduceMeanQuantizedFixture< int8_t >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(combine(datasets::Small4DShapes(), framework::dataset::make("DataType", DataType::QASYMM8_SIGNED)), axis_drop), framework::dataset::make("QuantizationInfoInput", { QuantizationInfo(1.f/102, 2) })), framework::dataset::make("QuantizationInfoOutput", { QuantizationInfo(1.f/113, 10) })))
 
 combine (combine(combine(combine(datasets::Large4DShapes(), framework::dataset::make("DataType", DataType::QASYMM8_SIGNED)), concat(axis_keep, axis_drop)), framework::dataset::make("QuantizationInfoInput", { QuantizationInfo(1.f/127, -10) })), framework::dataset::make("QuantizationInfoInputOutput", { QuantizationInfo(1.f/127, -10) })))
 

Variables

 NEReduceMeanQuantizedFixture< uint8_t >
 
 NEReduceMeanQuantizedFixture< int8_t >