From 7b1a9cc15f8674dc05a558798977488b05456dcf Mon Sep 17 00:00:00 2001 From: eshoguli Date: Tue, 12 Sep 2023 23:13:40 +0100 Subject: [PATCH] rebase fix --- .../batch_to_space_transformation.cpp | 4 ++-- .../space_to_batch_transformation.cpp | 4 ++-- .../batch_to_space_transformation.cpp | 10 ++++++---- .../space_to_batch_transformation.cpp | 10 ++++++---- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/batch_to_space_transformation.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/batch_to_space_transformation.cpp index 55912d15008c7b..2c8dfda5f94a6f 100644 --- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/batch_to_space_transformation.cpp +++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/batch_to_space_transformation.cpp @@ -21,7 +21,7 @@ const std::vector params = { { 1, 1, 2, 2 }, { 0, 0, 0, 0 }, { 0, 0, 0, 1 }, { 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 2.55f }, { 0.f }, { 2.55f } }, "batch_to_space", - "U8" + "u8" }, { { 4, 3, 50, 86 }, @@ -35,7 +35,7 @@ const std::vector params = { { 255.f, 255.f/2.f, 255.f/3.f }, }, "batch_to_space", - "FP32" + "f32" } }; diff --git a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/space_to_batch_transformation.cpp b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/space_to_batch_transformation.cpp index f5e3c1803dc5c9..ca9ef9f1dda658 100644 --- a/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/space_to_batch_transformation.cpp +++ b/src/plugins/intel_gpu/tests/functional/shared_tests_instances/low_precision_transformations/space_to_batch_transformation.cpp @@ -21,7 +21,7 @@ const std::vector params = { { 1, 1, 2, 2 }, { 0, 0, 2, 2 }, { 0, 0, 2, 3 }, { 256ul, ngraph::Shape{ 1, 1, 1, 1 }, { 0.f }, { 2.55f }, { 0.f }, { 2.55f } }, "space_to_batch", - "U8" + "u8" }, { {1, 3, 100, 171}, @@ -35,7 +35,7 @@ const std::vector params = { { 255.f, 255.f/2.f, 255.f/3.f }, }, "space_to_batch", - "FP32" + "f32" } }; diff --git a/src/tests/functional/plugin/shared/src/low_precision_transformations/batch_to_space_transformation.cpp b/src/tests/functional/plugin/shared/src/low_precision_transformations/batch_to_space_transformation.cpp index f438f507e0f36f..e5bb8d13bb586d 100644 --- a/src/tests/functional/plugin/shared/src/low_precision_transformations/batch_to_space_transformation.cpp +++ b/src/tests/functional/plugin/shared/src/low_precision_transformations/batch_to_space_transformation.cpp @@ -42,11 +42,13 @@ void BatchToSpaceTransformation::Run() { LayerTestsCommon::Run(); const auto params = std::get<2>(GetParam()); - auto actual_type = getRuntimePrecisionByType(params.layer_type); - const auto expected_type = params.expected_kernel_type; - if ((expected_type == "FP32") && (actual_type == "FP16")) { - actual_type = "FP32"; + auto expected_type = params.expected_kernel_type; + const auto input_type = std::get<0>(GetParam()); + if ((expected_type == "f32") && (input_type == ov::element::f16)) { + expected_type = "f16"; } + + const auto actual_type = getRuntimePrecisionByType(params.layer_type); EXPECT_EQ(actual_type, expected_type); } diff --git a/src/tests/functional/plugin/shared/src/low_precision_transformations/space_to_batch_transformation.cpp b/src/tests/functional/plugin/shared/src/low_precision_transformations/space_to_batch_transformation.cpp index efb1ae735f410f..73da4553e323cb 100644 --- a/src/tests/functional/plugin/shared/src/low_precision_transformations/space_to_batch_transformation.cpp +++ b/src/tests/functional/plugin/shared/src/low_precision_transformations/space_to_batch_transformation.cpp @@ -42,11 +42,13 @@ void SpaceToBatchTransformation::Run() { LayerTestsCommon::Run(); const auto params = std::get<2>(GetParam()); - auto actual_type = getRuntimePrecisionByType(params.layer_type); - const auto expected_type = params.expected_kernel_type; - if ((expected_type == "FP32") && (actual_type == "FP16")) { - actual_type = "FP32"; + auto expected_type = params.expected_kernel_type; + const auto input_type = std::get<0>(GetParam()); + if ((expected_type == "f32") && (input_type == ov::element::f16)) { + expected_type = "f16"; } + + const auto actual_type = getRuntimePrecisionByType(params.layer_type); EXPECT_EQ(actual_type, expected_type); }