From 0886ac4c403378ac0df85ab520a5db319be525a4 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Mon, 27 Apr 2020 09:55:40 +0100 Subject: MLCE-190: Neon and CL Constant Workloads do not support newer DataTypes * Added support for QASYMM8_SIGNED, QSYMM16, QSYMM8 and QSYMM8_PER_CHANNEL to Neon and CL backends * Added unit tests to Neon, CL and Ref backends Signed-off-by: Mike Kelly Change-Id: I4c726b6d86b4d75abedd130dcea372d1e82be5c2 --- src/backends/cl/test/ClLayerSupportTests.cpp | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'src/backends/cl/test/ClLayerSupportTests.cpp') diff --git a/src/backends/cl/test/ClLayerSupportTests.cpp b/src/backends/cl/test/ClLayerSupportTests.cpp index 33a2912b79..81d0cc2030 100644 --- a/src/backends/cl/test/ClLayerSupportTests.cpp +++ b/src/backends/cl/test/ClLayerSupportTests.cpp @@ -131,4 +131,41 @@ BOOST_FIXTURE_TEST_CASE(IsMeanSupportedCl, ClContextControlFixture) BOOST_CHECK(result); } +BOOST_AUTO_TEST_CASE(IsConstantSupportedCl) +{ + std::string reasonIfUnsupported; + + bool result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(result); + + result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(result); + + result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(result); + + result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(!result); + + result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(result); + + result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(result); + + result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(result); + + result = IsConstantLayerSupportedTests(reasonIfUnsupported); + BOOST_CHECK(!result); +} + BOOST_AUTO_TEST_SUITE_END() -- cgit v1.2.1