From d9c70dbce33ca62dbb1accdfd305b2d208eddba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Do=C5=82bniak?= Date: Mon, 20 Mar 2023 17:50:47 +0100 Subject: [PATCH] Explicit scales for all axes in interpolate op test (#16404) --- src/core/tests/visitors/op/interpolate.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/tests/visitors/op/interpolate.cpp b/src/core/tests/visitors/op/interpolate.cpp index fe375514439..10fc680896b 100644 --- a/src/core/tests/visitors/op/interpolate.cpp +++ b/src/core/tests/visitors/op/interpolate.cpp @@ -81,8 +81,7 @@ TEST(attributes, interpolate_op4) { TEST(attributes, interpolate_op11) { NodeBuilder::get_ops().register_factory(); const auto img = make_shared(element::f32, Shape{1, 3, 32, 32}); - const auto scales = op::v0::Constant::create(element::f32, {2}, {2.0, 2.0}); - const auto axes = op::v0::Constant::create(element::i32, {2}, {2, 3}); + const auto scales = op::v0::Constant::create(element::f32, {4}, {1.0, 1.0, 2.0, 2.0}); op::v11::Interpolate::InterpolateAttrs attrs; attrs.mode = op::v11::Interpolate::InterpolateMode::BILINEAR_PILLOW; @@ -94,7 +93,7 @@ TEST(attributes, interpolate_op11) { attrs.antialias = true; attrs.cube_coeff = -0.75; - auto interpolate = make_shared(img, scales, axes, attrs); + auto interpolate = make_shared(img, scales, attrs); NodeBuilder builder(interpolate, {img, scales}); auto g_interpolate = ov::as_type_ptr(builder.create());