diff options
Diffstat (limited to 'tests/validation/fixtures/RangeFixture.h')
-rw-r--r-- | tests/validation/fixtures/RangeFixture.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/validation/fixtures/RangeFixture.h b/tests/validation/fixtures/RangeFixture.h index 4862069694..166613a318 100644 --- a/tests/validation/fixtures/RangeFixture.h +++ b/tests/validation/fixtures/RangeFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2021, 2023 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -55,7 +55,6 @@ template <typename TensorType, typename AccessorType, typename FunctionType, typ class RangeFixture : public framework::Fixture { public: - template <typename...> void setup(const DataType data_type0, float start, float step, const QuantizationInfo qinfo0 = QuantizationInfo()) { _target = compute_target(data_type0, qinfo0, start, step); @@ -65,9 +64,9 @@ public: protected: float get_random_end(const DataType output_data_type, const QuantizationInfo qinfo_out, float start, float step) { - std::uniform_real_distribution<> distribution(1, 100); - std::mt19937 gen(library->seed()); - float end = start; + std::uniform_real_distribution<float> distribution(1, 100); + std::mt19937 gen(library->seed()); + float end = start; switch(output_data_type) { case DataType::U8: @@ -113,11 +112,11 @@ protected: FunctionType range_func; range_func.configure(&dst, start, end, step); - ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); + ARM_COMPUTE_ASSERT(dst.info()->is_resizable()); // Allocate tensors dst.allocator()->allocate(); - ARM_COMPUTE_EXPECT(!dst.info()->is_resizable(), framework::LogLevel::ERRORS); + ARM_COMPUTE_ASSERT(!dst.info()->is_resizable()); // Compute function range_func.run(); |