diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-07-12 12:42:35 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | 5b52fe3a4481769adcf42218a3747486cb4e9c14 (patch) | |
tree | 947c84d7d257f2c47045245f9aea30b772cdfb0a /tests/benchmark/fixtures/ConvolutionLayerFixture.h | |
parent | 71d9b57aac146ae3ad5648c1308a872cea90070d (diff) | |
download | ComputeLibrary-5b52fe3a4481769adcf42218a3747486cb4e9c14.tar.gz |
COMPMID-1390: OCLGrind and benchmark tests fail for QASYMM8
COMPMID-1392: OCLGrind failures in im2col1x1_stridex1_dchw
COMPMID-1395: OCLGrind failures in output_stage_quantized
Change-Id: I35504bd1f701316df122be52d458c71bbd7e7909
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/139722
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/benchmark/fixtures/ConvolutionLayerFixture.h')
-rw-r--r-- | tests/benchmark/fixtures/ConvolutionLayerFixture.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/benchmark/fixtures/ConvolutionLayerFixture.h b/tests/benchmark/fixtures/ConvolutionLayerFixture.h index 338a02162d..b23c3457ab 100644 --- a/tests/benchmark/fixtures/ConvolutionLayerFixture.h +++ b/tests/benchmark/fixtures/ConvolutionLayerFixture.h @@ -46,16 +46,16 @@ public: int batches) { // Set batched in source and destination shapes - src_shape.set(3 /* batch */, batches); dst_shape.set(3 /* batch */, batches); - 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 qinfo(2.f / 255.f, 127); // Create tensors - src = create_tensor<TensorType>(src_shape, data_type, 1); - weights = create_tensor<TensorType>(weights_shape, data_type, 1); + src = create_tensor<TensorType>(src_shape, data_type, 1, qinfo); + weights = create_tensor<TensorType>(weights_shape, data_type, 1, qinfo); biases = create_tensor<TensorType>(biases_shape, bias_data_type, 1); - dst = create_tensor<TensorType>(dst_shape, data_type, 1); + dst = create_tensor<TensorType>(dst_shape, data_type, 1, qinfo); // Create and configure function conv_layer.configure(&src, &weights, &biases, &dst, info, WeightsInfo(), dilation, act_info); |