diff options
author | Michele Di Giorgio <michele.digiorgio@arm.com> | 2018-09-13 16:22:01 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:55:45 +0000 |
commit | ed5a492ba791d8c8b3334749d4ae946b8f11d13d (patch) | |
tree | 89c8cd6f705dc88a21c61668164aad079800aff7 /tests/validation/Helpers.h | |
parent | 7e9391bb14d219cda310bff355669b5964b1f576 (diff) | |
download | ComputeLibrary-ed5a492ba791d8c8b3334749d4ae946b8f11d13d.tar.gz |
COMPMID-1586: Add support for NHWC CLDeconvolutionLayer
COMPMID-1651: Fix QASYMM8 CLDeconvolutionLayer
This patch also extends the range of values used for testing Convolution and
Deconvolution to cover quantized [-1.0f, 1.0f].
Change-Id: I8b280669db67bb3ec25bf5d411c8f5954f5b0dab
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/149869
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Tested-by: bsgcomp <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/Helpers.h')
-rw-r--r-- | tests/validation/Helpers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index 779ecdca11..4d1d21440d 100644 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -231,6 +231,14 @@ void get_tile(const SimpleTensor<T> &in, SimpleTensor<T> &tile, const Coordinate */ template <typename T> void zeros(SimpleTensor<T> &in, const Coordinates &anchor, const TensorShape &shape); + +/** Helper function to compute quantized min and max bounds + * + * @param[in] quant_info Quantization info to be used for conversion + * @param[in] min Floating point minimum value to be quantized + * @param[in] max Floating point maximum value to be quantized + */ +std::pair<int, int> get_quantized_bounds(const QuantizationInfo &quant_info, float min, float max); } // namespace validation } // namespace test } // namespace arm_compute |