diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2021-01-05 09:46:16 +0000 |
---|---|---|
committer | Giorgio Arena <giorgio.arena@arm.com> | 2021-01-05 13:55:06 +0000 |
commit | b309fc249e4383b4d40ae03e377c3cbad3f9f5f7 (patch) | |
tree | c409dc7e0ce3080efc030d1082c60e451def97f1 /tests/validation/fixtures/DirectConvolutionLayerTensorShiftFixture.h | |
parent | 97b3f11a1655c05bedaf378f85f94cdccb1536ba (diff) | |
download | ComputeLibrary-b309fc249e4383b4d40ae03e377c3cbad3f9f5f7.tar.gz |
Fix uniform_real_distribution_fp16 warning and single Dimension increment
- Change uniform_real_distribution_fp16's arguments to float to avoid maybe-uninitialized warnings in half data type's copy constructor and converter
- Add increment method to Dimensions in order to avoid possible overflows when incrementing single dimensions
- Remove internal_only flag documentation
Resolves: COMPMID-4061
Change-Id: I7c50487193bd7b47b03d52fc595840c7df4e7104
Signed-off-by: Giorgio Arena <giorgio.arena@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4760
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures/DirectConvolutionLayerTensorShiftFixture.h')
-rw-r--r-- | tests/validation/fixtures/DirectConvolutionLayerTensorShiftFixture.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/validation/fixtures/DirectConvolutionLayerTensorShiftFixture.h b/tests/validation/fixtures/DirectConvolutionLayerTensorShiftFixture.h index be43853e0b..7e891fe682 100644 --- a/tests/validation/fixtures/DirectConvolutionLayerTensorShiftFixture.h +++ b/tests/validation/fixtures/DirectConvolutionLayerTensorShiftFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 Arm Limited. + * Copyright (c) 2017-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -94,7 +94,7 @@ protected: } case DataType::F16: { - arm_compute::utils::uniform_real_distribution_fp16 distribution{ half(-1.0f), half(1.0f) }; + arm_compute::utils::uniform_real_distribution_fp16 distribution{ float(-1.0f), float(1.0f) }; library->fill(tensor, distribution, i); break; } |