21.02
|
#include "arm_compute/core/Types.h"
#include "arm_compute/runtime/CL/CLTensor.h"
#include "arm_compute/runtime/CL/CLTensorAllocator.h"
#include "arm_compute/runtime/CL/functions/CLRange.h"
#include "tests/CL/CLAccessor.h"
#include "tests/PaddingCalculator.h"
#include "tests/datasets/ConvertPolicyDataset.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-2021 Arm Limited. | |
arm_compute::test | |
arm_compute::test::validation | |
Typedefs | |
template<typename T > | |
using | CLRangeFixture = RangeFixture< CLTensor, CLAccessor, CLRange, 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::U8), }), framework::dataset::make("Start",{ 0.0f, 15.0f, 1500.0f, 100.0f, -15.0f, 0.2f, 2.0f, 10.0f})), framework::dataset::make("End",{ 100.0f, 15.0f, 2500.0f, -1000.0f, 15.0f, 10.0f, 10.0f, 100.0f })), framework::dataset::make("Step",{ 100.0f, 15.0f, 10.0f, 100.0f, -15.0f, 1.0f, 0.0f, 10.0f })), framework::dataset::make("Expected", { false, false, false, false, false, false, false, true, })), output_info, start, end, step, expected) | |
FIXTURE_DATA_TEST_CASE (RunSmall, CLRangeFixture< 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::QASYMM8), start_dataset), step_dataset), framework::dataset::make("QuantizationInfo", { QuantizationInfo(0.3457f, 120.0f) }))) | |
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::F16), start_dataset), float_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 | |
CLRangeFixture< uint8_t > | |
CLRangeFixture< int16_t > | |
CLRangeFixture< half > | |
CLRangeFixture< float > | |