From b5908c257d554009a00de3aaa95b3721000ed185 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Mon, 30 Oct 2017 15:28:13 +0000 Subject: COMPMID-653 - Arithmetic Subtraction, add support different datatype Change-Id: I2b3d65c8d8a85ad67b9972713d06f047f5bcd1ae Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93693 Reviewed-by: Georgios Pinitas Tested-by: Kaizen --- .../fixtures/ArithmeticSubtractionFixture.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'tests/validation/fixtures') diff --git a/tests/validation/fixtures/ArithmeticSubtractionFixture.h b/tests/validation/fixtures/ArithmeticSubtractionFixture.h index 2c683d659f..9e65faef00 100644 --- a/tests/validation/fixtures/ArithmeticSubtractionFixture.h +++ b/tests/validation/fixtures/ArithmeticSubtractionFixture.h @@ -40,7 +40,7 @@ namespace test { namespace validation { -template +template class ArithmeticSubtractionValidationFixedPointFixture : public framework::Fixture { public: @@ -93,31 +93,31 @@ protected: return dst; } - SimpleTensor compute_reference(const TensorShape &shape, DataType data_type0, DataType data_type1, DataType output_data_type, ConvertPolicy convert_policy, int fixed_point_position) + SimpleTensor compute_reference(const TensorShape &shape, DataType data_type0, DataType data_type1, DataType output_data_type, ConvertPolicy convert_policy, int fixed_point_position) { // Create reference - SimpleTensor ref_src1{ shape, data_type0, 1, fixed_point_position }; - SimpleTensor ref_src2{ shape, data_type1, 1, fixed_point_position }; + SimpleTensor ref_src1{ shape, data_type0, 1, fixed_point_position }; + SimpleTensor ref_src2{ shape, data_type1, 1, fixed_point_position }; // Fill reference fill(ref_src1, 0); fill(ref_src2, 1); - return reference::arithmetic_subtraction(ref_src1, ref_src2, output_data_type, convert_policy); + return reference::arithmetic_subtraction(ref_src1, ref_src2, output_data_type, convert_policy); } - TensorType _target{}; - SimpleTensor _reference{}; - int _fractional_bits{}; + TensorType _target{}; + SimpleTensor _reference{}; + int _fractional_bits{}; }; -template -class ArithmeticSubtractionValidationFixture : public ArithmeticSubtractionValidationFixedPointFixture +template +class ArithmeticSubtractionValidationFixture : public ArithmeticSubtractionValidationFixedPointFixture { public: template void setup(TensorShape shape, DataType data_type0, DataType data_type1, DataType output_data_type, ConvertPolicy convert_policy) { - ArithmeticSubtractionValidationFixedPointFixture::setup(shape, data_type0, data_type1, output_data_type, convert_policy, 0); + ArithmeticSubtractionValidationFixedPointFixture::setup(shape, data_type0, data_type1, output_data_type, convert_policy, 0); } }; } // namespace validation -- cgit v1.2.1