aboutsummaryrefslogtreecommitdiff
path: root/tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h
diff options
context:
space:
mode:
authorGunes Bayir <gunes.bayir@arm.com>2024-07-03 23:14:58 +0100
committerGunes Bayir <gunes.bayir@arm.com>2024-07-04 13:51:49 +0000
commit3bcc3c6337fe321e130a686a269a34162f42752b (patch)
tree55818fb6115c801ff5f59023f4a8b9e1d22bf04f /tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h
parent347aaa7c0c2f87b3fba48ee3ea73426d41217cb3 (diff)
downloadComputeLibrary-3bcc3c6337fe321e130a686a269a34162f42752b.tar.gz
test: Enable Fp16 tests in Multi-ISA build for most ops in [A-C] range
Partially Resolves: COMPMID-7185 Change-Id: If1219e7c2d678da3950a68917c5a8fbfbb2ef5ae Signed-off-by: Gunes Bayir <gunes.bayir@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11821 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h')
-rw-r--r--tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h b/tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h
index 7ad14e1b40..5e2f9a9c3d 100644
--- a/tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h
+++ b/tests/validation/fixtures/ConvertFullyConnectedWeightsFixture.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2023 Arm Limited.
+ * Copyright (c) 2018-2024 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -21,8 +21,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-#ifndef ARM_COMPUTE_TEST_CONVERT_FULLY_CONNECTED_WEIGHTS_FIXTURE
-#define ARM_COMPUTE_TEST_CONVERT_FULLY_CONNECTED_WEIGHTS_FIXTURE
+#ifndef ACL_TESTS_VALIDATION_FIXTURES_CONVERTFULLYCONNECTEDWEIGHTSFIXTURE_H
+#define ACL_TESTS_VALIDATION_FIXTURES_CONVERTFULLYCONNECTEDWEIGHTSFIXTURE_H
#include "arm_compute/core/TensorShape.h"
#include "arm_compute/core/Types.h"
@@ -45,6 +45,12 @@ class ConvertFullyConnectedWeightsValidationFixture : public framework::Fixture
public:
void setup(TensorShape input_shape, unsigned int weights_w, DataLayout training_data_layout, DataType data_type)
{
+ if(std::is_same<TensorType, Tensor>::value && // Cpu
+ data_type == DataType::F16 && !CPUInfo::get().has_fp16())
+ {
+ return;
+ }
+
const unsigned int height = input_shape.x() * input_shape.y() * input_shape.z();
const TensorShape weights_shape(weights_w, height);
@@ -128,4 +134,4 @@ protected:
} // namespace validation
} // namespace test
} // namespace arm_compute
-#endif /* ARM_COMPUTE_TEST_CONVERT_FULLY_CONNECTED_WEIGHTS_FIXTURE */
+#endif // ACL_TESTS_VALIDATION_FIXTURES_CONVERTFULLYCONNECTEDWEIGHTSFIXTURE_H