Skip to content

Commit

Permalink
build fix
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Paramuzov <[email protected]>
  • Loading branch information
vladimir-paramuzov committed Jan 28, 2025
1 parent c1c3c6a commit 73c07ab
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool, ov::Shape> result;

for (auto& shape : in_shapes)
Expand Down Expand Up @@ -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<bool, ov::Shape> result;

for (auto& shape : in_shapes)
Expand Down Expand Up @@ -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<int64_t>(max_alloc_mem_size)}, ov::element::u8, format::bfyx);
Expand Down

0 comments on commit 73c07ab

Please sign in to comment.