aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/test/ReduceTest.cpp
diff options
context:
space:
mode:
authorTeresa Charlin <teresa.charlinreyes@arm.com>2022-10-27 11:37:29 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2022-10-28 10:23:36 +0000
commit4d85adf436092d01ca0957967156e36060e8be68 (patch)
treead13e2320c98f93c058b0cd43186005e7258d1ee /delegate/src/test/ReduceTest.cpp
parent0f86ecfce593a302ebd2baf8b70c9f6f50616f81 (diff)
downloadarmnn-4d85adf436092d01ca0957967156e36060e8be68.tar.gz
IVGCVSW-7296 REDUCE_PROD tests fail when using Tf 2.10
* In TF what ArmNN calls quantized data types can be non-quantized as well. * This patch creates 2 models: * ArmNN: model where int8 and uint8 will always be quantized, but scale can be 1 and offset 0 * TFLite: model where int8 and uint8 can be quantized and non-quantized Signed-off-by: Teresa Charlin <teresa.charlinreyes@arm.com> Change-Id: Id960f2f30988f2bbec88cb4e0c52c189ac957bae
Diffstat (limited to 'delegate/src/test/ReduceTest.cpp')
-rw-r--r--delegate/src/test/ReduceTest.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/delegate/src/test/ReduceTest.cpp b/delegate/src/test/ReduceTest.cpp
index b81c5df592..9c11c8736c 100644
--- a/delegate/src/test/ReduceTest.cpp
+++ b/delegate/src/test/ReduceTest.cpp
@@ -354,8 +354,7 @@ TEST_CASE ("Sum_Fp32_GpuAcc_Test")
TEST_SUITE("Prod_CpuRefTests")
{
-TEST_CASE ("Prod_Uint8_KeepDims_CpuRef_Test"
- * doctest::skip(true) )
+TEST_CASE ("Prod_Uint8_KeepDims_CpuRef_Test")
{
std::vector<armnn::BackendId> backends = {armnn::Compute::CpuRef};
std::vector<uint8_t> expectedOutputValues { 4, 6, 3 };
@@ -364,8 +363,7 @@ TEST_CASE ("Prod_Uint8_KeepDims_CpuRef_Test"
expectedOutputValues);
}
-TEST_CASE ("Prod_Fp32_CpuRef_Test"
- * doctest::skip(true) )
+TEST_CASE ("Prod_Fp32_CpuRef_Test")
{
std::vector<armnn::BackendId> backends = {armnn::Compute::CpuRef};
std::vector<float> expectedOutputValues { 10010.0f, 11022.0f, 12036.0f };
@@ -379,8 +377,7 @@ TEST_CASE ("Prod_Fp32_CpuRef_Test"
TEST_SUITE("Prod_CpuAccTests")
{
-TEST_CASE ("Prod_Uint8_KeepDims_CpuAcc_Test"
- * doctest::skip(true) )
+TEST_CASE ("Prod_Uint8_KeepDims_CpuAcc_Test" )
{
std::vector<armnn::BackendId> backends = {armnn::Compute::CpuAcc};
std::vector<uint8_t> expectedOutputValues { 4, 6, 3 };
@@ -389,8 +386,7 @@ TEST_CASE ("Prod_Uint8_KeepDims_CpuAcc_Test"
expectedOutputValues);
}
-TEST_CASE ("Prod_Fp32_CpuAcc_Test"
- * doctest::skip(true) )
+TEST_CASE ("Prod_Fp32_CpuAcc_Test")
{
std::vector<armnn::BackendId> backends = {armnn::Compute::CpuAcc};
std::vector<float> expectedOutputValues { 10010.0f, 11022.0f, 12036.0f };
@@ -404,8 +400,7 @@ TEST_CASE ("Prod_Fp32_CpuAcc_Test"
TEST_SUITE("Prod_GpuAccTests")
{
-TEST_CASE ("Prod_Uint8_KeepDims_GpuAcc_Test"
- * doctest::skip(true) )
+TEST_CASE ("Prod_Uint8_KeepDims_GpuAcc_Test")
{
std::vector<armnn::BackendId> backends = {armnn::Compute::GpuAcc};
std::vector<uint8_t> expectedOutputValues { 4, 6, 3 };
@@ -414,8 +409,7 @@ TEST_CASE ("Prod_Uint8_KeepDims_GpuAcc_Test"
expectedOutputValues);
}
-TEST_CASE ("Prod_Fp32_GpuAcc_Test"
- * doctest::skip(true) )
+TEST_CASE ("Prod_Fp32_GpuAcc_Test")
{
std::vector<armnn::BackendId> backends = {armnn::Compute::GpuAcc};
std::vector<float> expectedOutputValues { 10010.0f, 11022.0f, 12036.0f };