30 #include "tests/datasets/ShapeDatasets.h" 35 #include "tests/validation/fixtures/SoftmaxLayerFixture.h" 50 constexpr AbsoluteTolerance<uint8_t> tolerance_qasymm8(1);
55 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 69 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 101 framework::dataset::
make("Beta", { 1.0f, 2.0f })),
126 template <
typename T>
127 using NELogSoftmaxLayerQuantizedFixture = SoftmaxValidationQuantizedFixture<Tensor, Accessor, NELogSoftmaxLayer, T, true>;
132 framework::dataset::
make("
DataType", DataType::QASYMM8)),
RelativeTolerance< float > tolerance_f32(0.001f)
F32 Tolerance value for comparing reference's output against implementation's output for floating poi...
half_float::half half
16-bit floating point type
1 channel, 1 F32 per channel
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-2021 Arm Limited.
1 channel, 1 F16 per channel
Quantization information.
Accessor implementation for Tensor objects.
DatasetMode
Possible dataset modes.
TEST_SUITE_END() FIXTURE_DATA_TEST_CASE(RunSmall
[CLActivationLayer Test snippet]
quantized, asymmetric fixed-point 8-bit number unsigned
TEST_SUITE(U8_to_S8) FIXTURE_DATA_TEST_CASE(RunSmall
validate(CLAccessor(output_state), expected_output)
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsLayerFixture< half >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F16)))
RelativeTolerance< half_float::half > tolerance_f16(half(0.2))
F16 Tolerance value for comparing reference's output against implementation's output for floating poi...
DataType
Available data types.
combine(datasets::SmallShapes(), framework::dataset::make("DataType", DataType::F32)))
SoftmaxValidationFixture< Tensor, Accessor, NELogSoftmaxLayer, T, true > NELogSoftmaxLayerFixture