From 2680e9b7aac298239cd872d4ea56ce98ee250607 Mon Sep 17 00:00:00 2001 From: Egor Duplenskii Date: Fri, 19 May 2023 07:43:05 +0200 Subject: [PATCH] [CPU][ARM][TESTS] Expect ref implementation for GeluErf (#17611) --- .../single_layer_tests/classes/activation.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugins/intel_cpu/tests/functional/single_layer_tests/classes/activation.cpp b/src/plugins/intel_cpu/tests/functional/single_layer_tests/classes/activation.cpp index 6cc5e9a3225..88c3ab37723 100644 --- a/src/plugins/intel_cpu/tests/functional/single_layer_tests/classes/activation.cpp +++ b/src/plugins/intel_cpu/tests/functional/single_layer_tests/classes/activation.cpp @@ -99,12 +99,16 @@ void ActivationLayerCPUTest::SetUp() { selectedType = getPrimitiveType() + "_" + netPrecision.name(); #if defined(OPENVINO_ARCH_ARM) || defined(OPENVINO_ARCH_ARM64) - if (activationType == ngraph::helpers::ActivationTypes::GeluTanh || // @todo not supported by ACL, can be decomposed with ngraph transformation - activationType == ngraph::helpers::ActivationTypes::SoftSign || // @todo not supported by ACL, can be decomposed with ngraph transformation +# if defined(OPENVINO_ARCH_ARM) + if (activationType == ngraph::helpers::ActivationTypes::GeluErf) // @todo tmp fallback to ref, gelu erf is disabled for 32bit ARM + selectedType = std::string("ref_") + netPrecision.name(); +# endif + if (activationType == ngraph::helpers::ActivationTypes::GeluTanh || // @todo not supported by ACL, can be decomposed with ngraph transformation + activationType == ngraph::helpers::ActivationTypes::SoftSign || // @todo not supported by ACL, can be decomposed with ngraph transformation inputShapes.front().first.rank().get_length() > 5) // @todo tmp fallback to ref, remove after 6D+ ranks are properly supported selectedType = std::string("ref_") + netPrecision.name(); #else - if (activationType == ngraph::helpers::ActivationTypes::Log) // @todo tmp fallback to ref, remove after Log is supported in emitters + if (activationType == ngraph::helpers::ActivationTypes::Log) // @todo tmp fallback to ref, remove after Log is supported in emitters selectedType = std::string("ref_") + netPrecision.name(); #endif