From e70ebc17658840f2099facca72e2194ae593f820 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 10 Sep 2018 19:53:06 +0100 Subject: COMPMID-1451: Add QASYMM8 in DragonBench Change-Id: I7a4ae45c5b18ffda1a6d3fbe6304814cc1d3f288 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/147628 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- tests/benchmark/fixtures/DragonBenchFixture.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/benchmark/fixtures') diff --git a/tests/benchmark/fixtures/DragonBenchFixture.h b/tests/benchmark/fixtures/DragonBenchFixture.h index b9b3a180ac..526a798154 100644 --- a/tests/benchmark/fixtures/DragonBenchFixture.h +++ b/tests/benchmark/fixtures/DragonBenchFixture.h @@ -68,13 +68,14 @@ public: } // Determine bias data type - DataType bias_data_type = is_data_type_quantized_asymmetric(data_type) ? DataType::S32 : data_type; + DataType bias_data_type = is_data_type_quantized_asymmetric(data_type) ? DataType::S32 : data_type; + const QuantizationInfo q_info(2.f, 10); // Create tensors - src = create_tensor(src_shape, data_type, 1, QuantizationInfo(), data_layout); - weights = create_tensor(weights_shape, data_type, 1, QuantizationInfo(), data_layout); - biases = create_tensor(biases_shape, bias_data_type, 1, QuantizationInfo(), data_layout); - dst = create_tensor(dst_shape, data_type, 1, QuantizationInfo(), data_layout); + src = create_tensor(src_shape, data_type, 1, q_info, data_layout); + weights = create_tensor(weights_shape, data_type, 1, q_info, data_layout); + biases = create_tensor(biases_shape, bias_data_type, 1, q_info, data_layout); + dst = create_tensor(dst_shape, data_type, 1, q_info, data_layout); // Create and configure function conv_layer.configure(&src, &weights, has_bias ? &biases : nullptr, &dst, info); -- cgit v1.2.1