Compute Library
 22.11
Range.cpp File Reference
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/NEON/functions/NERange.h"
#include "arm_compute/runtime/Tensor.h"
#include "arm_compute/runtime/TensorAllocator.h"
#include "tests/NEON/Accessor.h"
#include "tests/PaddingCalculator.h"
#include "tests/datasets/ShapeDatasets.h"
#include "tests/framework/Asserts.h"
#include "tests/framework/Macros.h"
#include "tests/framework/datasets/Datasets.h"
#include "tests/validation/Validation.h"
#include "tests/validation/fixtures/RangeFixture.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 NERangeFixture = RangeFixture< Tensor, Accessor, NERange, T >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(framework::dataset::make("OutputInfo", { TensorInfo(TensorShape(32U, 13U, 2U), 1, DataType::U8), TensorInfo(TensorShape(32U), 1, DataType::U8), TensorInfo(TensorShape(27U), 1, DataType::U8), TensorInfo(TensorShape(32U), 1, DataType::U8), TensorInfo(TensorShape(32U), 1, DataType::F32), TensorInfo(TensorShape(27U), 1, DataType::U8), TensorInfo(TensorShape(27U), 1, DataType::U8), TensorInfo(TensorShape(10U), 1, DataType::QASYMM8), TensorInfo(TensorShape(10U), 1, DataType::U8), }), framework::dataset::make("Start",{ 0.0f, 15.0f, 1500.0f, 100.0f, -15.0f, 0.2f, 2.0f, 10.0f, 10.0f })), framework::dataset::make("End",{ 100.0f, 15.0f, 2500.0f, -1000.0f, 15.0f, 10.0f, 10.0f, 100.0f, 100.0f })), framework::dataset::make("Step",{ 100.0f, 15.0f, 10.0f, 100.0f, -15.0f, 1.0f, 0.0f, 10.0f, 10.0f })), framework::dataset::make("Expected", { false, false, false, false, false, false, false, false, true, })), output_info, start, end, step, expected)
 
 FIXTURE_DATA_TEST_CASE (RunSmall, NERangeFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(combine(combine(framework::dataset::make("DataType", DataType::U8), unsigned_start_dataset), unsigned_step_dataset), framework::dataset::make("QuantizationInfo", { QuantizationInfo() })))
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 combine (combine(combine(framework::dataset::make("DataType", DataType::S16), start_dataset), step_dataset), framework::dataset::make("QuantizationInfo", { QuantizationInfo() })))
 
 combine (combine(combine(framework::dataset::make("DataType", DataType::F32), start_dataset), float_step_dataset), framework::dataset::make("QuantizationInfo", { QuantizationInfo() })))
 

Variables

 NERangeFixture< int16_t >
 
 NERangeFixture< float >