diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-09-10 19:53:06 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | e70ebc17658840f2099facca72e2194ae593f820 (patch) | |
tree | 63fbd55f6c809f6fc630ae2aa77200e62b6f44f8 /tests/benchmark/fixtures/DragonBenchFixture.h | |
parent | 177a9a54d6b556edf39bb3ec968c074d1b865964 (diff) | |
download | ComputeLibrary-e70ebc17658840f2099facca72e2194ae593f820.tar.gz |
COMPMID-1451: Add QASYMM8 in DragonBench
Change-Id: I7a4ae45c5b18ffda1a6d3fbe6304814cc1d3f288
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/147628
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/benchmark/fixtures/DragonBenchFixture.h')
-rw-r--r-- | tests/benchmark/fixtures/DragonBenchFixture.h | 11 |
1 files changed, 6 insertions, 5 deletions
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<TensorType>(src_shape, data_type, 1, QuantizationInfo(), data_layout); - weights = create_tensor<TensorType>(weights_shape, data_type, 1, QuantizationInfo(), data_layout); - biases = create_tensor<TensorType>(biases_shape, bias_data_type, 1, QuantizationInfo(), data_layout); - dst = create_tensor<TensorType>(dst_shape, data_type, 1, QuantizationInfo(), data_layout); + src = create_tensor<TensorType>(src_shape, data_type, 1, q_info, data_layout); + weights = create_tensor<TensorType>(weights_shape, data_type, 1, q_info, data_layout); + biases = create_tensor<TensorType>(biases_shape, bias_data_type, 1, q_info, data_layout); + dst = create_tensor<TensorType>(dst_shape, data_type, 1, q_info, data_layout); // Create and configure function conv_layer.configure(&src, &weights, has_bias ? &biases : nullptr, &dst, info); |