31 #include "tests/datasets/ShapeDatasets.h" 36 #include "tests/validation/fixtures/FixedPointFixture.h" 46 constexpr AbsoluteTolerance<float> tolerance_exp_qs8(0.0f);
47 constexpr AbsoluteTolerance<float> tolerance_exp_qs16(1.0f);
48 constexpr AbsoluteTolerance<float> tolerance_invsqrt_qs8(4.0f);
49 constexpr AbsoluteTolerance<float> tolerance_invsqrt_qs16(5.0f);
50 constexpr AbsoluteTolerance<float> tolerance_log_qs8(5.0f);
51 constexpr AbsoluteTolerance<float> tolerance_log_qs16(7.0f);
65 framework::dataset::
make("FractionalBits", 1, 7)))
68 validate(Accessor(_target), _reference, tolerance_exp_qs8, 0);
76 framework::dataset::
make("FractionalBits", 1, 6)))
87 framework::dataset::
make("FractionalBits", 3, 6)))
100 framework::dataset::
make("FractionalBits", 1, 15)))
112 framework::dataset::
make("FractionalBits", 1, 14)))
123 framework::dataset::
make("FractionalBits", 4, 14)))
quantized, symmetric fixed-point 16-bit number
FixedPointOp
Fixed point operation.
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
This file contains all available output stages for GEMMLowp on OpenCL.
#define TEST_SUITE(SUITE_NAME)
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsoluteDifferenceFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), AbsoluteDifferenceU8Dataset))
validate(dst.info() ->valid_region(), dst_valid_region)
Accessor implementation for Tensor objects.
DatasetMode
Possible dataset modes.
Basic implementation of the tensor interface.
FixedPointValidationFixture< Tensor, Accessor, T > NEFixedPointFixture
TEST_SUITE_END() DATA_TEST_CASE(Configuration
combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType",{DataType::U8, DataType::S16})), datasets::BorderModes()), framework::dataset::make("filter_size",{5}))
DataType
Available data types.