From 9b10ef6f6f5953411c34112b68574ee79af1c79e Mon Sep 17 00:00:00 2001 From: Aleksandr Voron Date: Wed, 30 Aug 2023 07:38:30 +0200 Subject: [PATCH] [CPU][ARM] Fix inference precision for behaviour tests (#19485) --- .../tests/functional/behavior/ov_plugin/properties.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/plugins/intel_cpu/tests/functional/behavior/ov_plugin/properties.cpp b/src/plugins/intel_cpu/tests/functional/behavior/ov_plugin/properties.cpp index 8a8ddc3a243942..12df6009e93b6b 100644 --- a/src/plugins/intel_cpu/tests/functional/behavior/ov_plugin/properties.cpp +++ b/src/plugins/intel_cpu/tests/functional/behavior/ov_plugin/properties.cpp @@ -156,11 +156,7 @@ TEST_F(OVClassConfigTestCPU, smoke_PluginSetConfigAffinity) { TEST_F(OVClassConfigTestCPU, smoke_PluginSetConfigHintInferencePrecision) { ov::Core ie; auto value = ov::element::f32; -#if defined(OV_CPU_ARM_ENABLE_FP16) - const auto precision = ov::element::f16; -#else const auto precision = InferenceEngine::with_cpu_x86_bfloat16() ? ov::element::bf16 : ov::element::f32; -#endif ASSERT_NO_THROW(value = ie.get_property("CPU", ov::hint::inference_precision)); ASSERT_EQ(precision, value); @@ -194,11 +190,7 @@ TEST_F(OVClassConfigTestCPU, smoke_PluginSetConfigEnableProfiling) { ASSERT_EQ(enableProfiling, value); } -#if defined(OV_CPU_ARM_ENABLE_FP16) - const auto expected_precision_for_performance_mode = ov::element::f16; -#else - const auto expected_precision_for_performance_mode = InferenceEngine::with_cpu_x86_bfloat16() ? ov::element::bf16 : ov::element::f32; -#endif +const auto expected_precision_for_performance_mode = InferenceEngine::with_cpu_x86_bfloat16() ? ov::element::bf16 : ov::element::f32; const auto bf16_if_can_be_emulated = InferenceEngine::with_cpu_x86_avx512_core() ? ov::element::bf16 : ov::element::f32; using ExpectedModeAndType = std::pair;