diff --git a/modules/gapi/src/backends/ov/govbackend.cpp b/modules/gapi/src/backends/ov/govbackend.cpp index 6a787c03e9..15c216d716 100644 --- a/modules/gapi/src/backends/ov/govbackend.cpp +++ b/modules/gapi/src/backends/ov/govbackend.cpp @@ -111,7 +111,7 @@ static ov::element::Type toOV(int depth) { case CV_16F: return ov::element::f16; default: GAPI_Error("OV Backend: Unsupported data type"); } - return ov::element::undefined; + return ov::element::dynamic; } static ov::preprocess::ResizeAlgorithm toOVInterp(int interpolation) { diff --git a/modules/gapi/test/infer/gapi_infer_ov_tests.cpp b/modules/gapi/test/infer/gapi_infer_ov_tests.cpp index 85df0b24da..31fb3dd65a 100644 --- a/modules/gapi/test/infer/gapi_infer_ov_tests.cpp +++ b/modules/gapi/test/infer/gapi_infer_ov_tests.cpp @@ -829,7 +829,7 @@ static ov::element::Type toOV(int depth) { case CV_16F: return ov::element::f16; default: GAPI_Error("OV Backend: Unsupported data type"); } - return ov::element::undefined; + return ov::element::dynamic; } struct TestMeanScaleOV : public ::testing::TestWithParam{