From 73c07abbf2ac1674baf8ce676f3f411259ec6645 Mon Sep 17 00:00:00 2001 From: Vladimir Paramuzov Date: Tue, 28 Jan 2025 10:29:35 +0400 Subject: [PATCH] build fix Signed-off-by: Vladimir Paramuzov --- .../tests/unit/module_tests/shape_predictor_test.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/plugins/intel_gpu/tests/unit/module_tests/shape_predictor_test.cpp b/src/plugins/intel_gpu/tests/unit/module_tests/shape_predictor_test.cpp index c89cd5d93b709f..6d4b8fd7388e76 100644 --- a/src/plugins/intel_gpu/tests/unit/module_tests/shape_predictor_test.cpp +++ b/src/plugins/intel_gpu/tests/unit/module_tests/shape_predictor_test.cpp @@ -23,7 +23,9 @@ TEST_P(shape_predictor_tests, prediction) { auto& expected_predicted_shape = p.expected_predicted_shape; auto& engine = get_test_engine(); - ShapePredictor sp(&engine, ShapePredictor::Settings{ .buffers_preallocation_ratio = p.buffers_preallocation_ratio }); + ShapePredictor::Settings settings; + settings.buffers_preallocation_ratio = p.buffers_preallocation_ratio; + ShapePredictor sp(&engine, settings); std::pair result; for (auto& shape : in_shapes) @@ -74,7 +76,9 @@ TEST_P(shape_predictor_tests_b_fs_yx_fsv16, prediction) { auto& expected_predicted_shape = p.expected_predicted_shape; auto& engine = get_test_engine(); - ShapePredictor sp(&engine, ShapePredictor::Settings{ .buffers_preallocation_ratio = p.buffers_preallocation_ratio }); + ShapePredictor::Settings settings; + settings.buffers_preallocation_ratio = p.buffers_preallocation_ratio; + ShapePredictor sp(&engine, settings); std::pair result; for (auto& shape : in_shapes) @@ -122,7 +126,9 @@ TEST(shape_predictor_tests, check_max_buffer_size) { auto& engine = get_test_engine(); const auto& buffers_preallocation_ratio = 1.1f; - ShapePredictor sp(&engine, ShapePredictor::Settings{ .buffers_preallocation_ratio = buffers_preallocation_ratio }); + ShapePredictor::Settings settings; + settings.buffers_preallocation_ratio = buffers_preallocation_ratio; + ShapePredictor sp(&engine, settings); const auto max_alloc_mem_size = engine.get_device_info().max_alloc_mem_size; auto layout = cldnn::layout({static_cast(max_alloc_mem_size)}, ov::element::u8, format::bfyx);