23.08
|
Go to the documentation of this file.
30 #include "tests/datasets/ShapeDatasets.h"
35 #include "tests/validation/fixtures/ElementwiseUnaryFixture.h"
46 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
48 #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
49 #if defined(__aarch64__)
50 constexpr AbsoluteTolerance<uint8_t> tolerance_qasymm8(0);
52 #else // #if !defined(__aarch64__)
53 constexpr AbsoluteTolerance<uint8_t> tolerance_qasymm8(1);
55 #endif // #if !defined(__aarch64__)
86 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
102 #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
118 datasets::SmallShapes(),
124 validate(Accessor(_target), _reference, tolerance_qasymm8);
130 datasets::SmallShapes(),
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
Quantization information.
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))
Accessor implementation for Tensor objects.
RsqrtDynamicShapeValidationFixture< Tensor, Accessor, NERsqrtLayer, T > CpuRsqrtDynamicShapeFixture
const AbsoluteTolerance< half > tolerance_fp16(half(0.1f))
RsqrtQuantizedValidationFixture< Tensor, Accessor, NERsqrtLayer, T > NERsqrtLayerQuantizedFixture
validate(CLAccessor(output_state), expected_output)
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
Copyright (c) 2017-2023 Arm Limited.
TEST_SUITE(QASYMM8_to_F32) FIXTURE_DATA_TEST_CASE(RunSmall
@ F16
16-bit floating-point number
Basic function to perform unary elementwise operations.
constexpr AbsoluteTolerance< int8_t > tolerance_qasymm8_signed
@ F32
32-bit floating-point number
Basic implementation of the tensor interface.
RelativeTolerance< float > tolerance_fp32(0.001f)
Tolerance value for comparing reference's output against implementation's output for FP32 data types.
DatasetMode
Possible dataset modes.
DataType
Available data types.