31 #include "tests/datasets/GEMMLowpFusedOffsetOutputDataset.h" 32 #include "tests/datasets/LargeGEMMLowpDataset.h" 33 #include "tests/datasets/ShapeDatasets.h" 34 #include "tests/datasets/SmallGEMMLowpDataset.h" 39 #include "tests/validation/fixtures/GEMMLowpFixture.h" 49 constexpr AbsoluteTolerance<float> tolerance_quant(1);
60 validate(CLAccessor(_target), _reference);
87 using CLGEMMLowpMatrixMultiplyCoreFusedOffsetOutputInt8Fixture =
88 GEMMLowpMatrixMultiplyCoreFusedOffsetOutputValidationFixture<CLTensor, CLAccessor, CLGEMMLowpMatrixMultiplyCore, false, false, int8_t, int8_t>;
99 using CLGEMMLowpMatrixMultiplyCoreOutput3DFixture = GEMMLowpMatrixMultiplyCoreValidationFixture<CLTensor, CLAccessor, CLGEMMLowpMatrixMultiplyCore, false, true>;
113 using CLGEMMLowpMatrixMultiplyCoreInputOutput3DFixture = GEMMLowpMatrixMultiplyCoreValidationFixture<CLTensor, CLAccessor, CLGEMMLowpMatrixMultiplyCore, true, true>;
188 TEST_SUITE(QuantizeDownInt32ScaleByFixedPoint)
200 GEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointValidationFixture<CLTensor, CLAccessor, CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPoint>;
203 quantize_down_int32_to_uint8_scale_by_fixedpoint_cases))
210 quantize_down_int32_to_uint8_scale_by_fixedpoint_cases))
239 GEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointValidationFixture<CLTensor, CLAccessor, CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPoint>;
242 quantize_down_int32_to_int8_scale_by_fixedpoint_cases))
281 GEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointValidationFixture<CLTensor, CLAccessor, CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPoint>;
286 quantize_down_int32_to_int16_scale_by_fixedpoint_cases))
325 using CLGEMMLowpQuantizeDownInt32ScaleByFloatFixture =
326 GEMMLowpQuantizeDownInt32ScaleByFloatValidationFixture<CLTensor, CLAccessor, CLGEMMLowpOutputStage, uint8_t>;
330 datasets::TinyShapes()),
343 using CLGEMMLowpQuantizeDownInt32ScaleByFloatFixture_Signed =
344 GEMMLowpQuantizeDownInt32ScaleByFloatValidationFixture<CLTensor, CLAccessor, CLGEMMLowpOutputStage, int8_t>;
347 datasets::TinyShapes()),
quantized, symmetric fixed-point 16-bit number
const auto quantize_down_int32_to_int8_scale_by_fixedpoint_relu_cases
const auto quantize_down_int32_to_int16_scale_by_fixedpoint_multgreat1_relu_cases
GEMMLowpQuantizeDownInt32ToUint8ScaleValidationFixture< CLTensor, CLAccessor, CLGEMMLowpOutputStage > CLGEMMLowpQuantizeDownInt32ScaleFixture
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
GEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointValidationFixture< CLTensor, CLAccessor, CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPoint > CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointFixture
Copyright (c) 2017-2021 Arm Limited.
GEMMLowpMatrixMultiplyCoreFusedOffsetOutputValidationFixture< CLTensor, CLAccessor, CLGEMMLowpMatrixMultiplyCore > CLGEMMLowpMatrixMultiplyCoreFusedOffsetOutputUint8Fixture
DatasetMode
Possible dataset modes.
const auto quantize_down_int32_to_uint8_scale_relu_cases
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
quantized, asymmetric fixed-point 8-bit number unsigned
Accessor implementation for CLTensor objects.
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
validate(CLAccessor(output_state), expected_output)
GEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointValidationFixture< CLTensor, CLAccessor, CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPoint > CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointFixture
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
const auto quantize_down_int32_to_int16_scale_by_fixedpoint_multgreat1_cases
GEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointValidationFixture< CLTensor, CLAccessor, CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPoint > CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointFixture
Basic function to execute GEMMLowpMatrixMultiplyCore on OpenCL.
quantized, asymmetric fixed-point 8-bit number signed
DataType
Available data types.
const auto quantize_down_int32_to_uint8_scale_by_fixedpoint_relu_cases
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))
const auto quantize_down_int32_to_int16_scale_by_fixedpoint_relu_cases
GEMMLowpMatrixMultiplyCoreValidationFixture< CLTensor, CLAccessor, CLGEMMLowpMatrixMultiplyCore > CLGEMMLowpMatrixMultiplyCoreFixture
const auto quantize_down_int32_to_int8_scale_relu_cases
Basic implementation of the OpenCL tensor interface.