diff options
author | Gian Marco Iodice <gianmarco.iodice@arm.com> | 2019-01-21 17:14:31 +0000 |
---|---|---|
committer | Gian Marco Iodice <gianmarco.iodice@arm.com> | 2019-01-21 18:52:34 +0000 |
commit | b87b95e13cce28523e25d6a50af3147edfb43357 (patch) | |
tree | 7261a482a140c4fe082caa1c172ead302be23240 /tests/validation/fixtures/GEMMFixture.h | |
parent | a0a0e29f635de08092c2325f8f049ffb286aabaf (diff) | |
download | ComputeLibrary-b87b95e13cce28523e25d6a50af3147edfb43357.tar.gz |
COMPMID-1899: Fix NaN issue in CLGEMMMatrixMultiplyReshapedKernel
Change-Id: Ide950b46c4d41de230c272c7044a03f4f9f237ed
Reviewed-on: https://review.mlplatform.org/548
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Giuseppe Rossini <giuseppe.rossini@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures/GEMMFixture.h')
-rw-r--r-- | tests/validation/fixtures/GEMMFixture.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/validation/fixtures/GEMMFixture.h b/tests/validation/fixtures/GEMMFixture.h index 24c9d96611..a6a3b67785 100644 --- a/tests/validation/fixtures/GEMMFixture.h +++ b/tests/validation/fixtures/GEMMFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2018 ARM Limited. + * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -187,6 +187,10 @@ protected: { std::uniform_real_distribution<> distribution(-1.0f, 1.0f); library->fill(tensor, distribution, i); + + // Fill border with infinity in order to check the presence of NaN values (i.e. inf * 0) + std::uniform_real_distribution<> distribution_inf(std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity()); + library->fill_borders_with_garbage(tensor, distribution_inf, i); } TensorType compute_target(const TensorShape &lhs_shape, const TensorShape &rhs_shape, const GEMMLHSMatrixInfo &lhs_info, const GEMMRHSMatrixInfo &rhs_info, DataType data_type, float alpha) |