OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[TRANSFORMATIONS] Disable Divide conversion while converting Mod (#32496)
Tomasz Jankowski988bd5358d0d
diff --git a/src/common/transformations/src/transformations/op_conversions/convert_mod.cpp b/src/common/transformations/src/transformations/op_conversions/convert_mod.cppindex 6df6d768435..30eae263018 100644--- a/src/common/transformations/src/transformations/op_conversions/convert_mod.cpp+++ b/src/common/transformations/src/transformations/op_conversions/convert_mod.cpp@@ -18,6 +18,7 @@#include "openvino/op/sign.hpp"#include "openvino/op/subtract.hpp"#include "openvino/pass/pattern/op/wrap_type.hpp"+#include "transformations/rt_info/nonconvertible_divide.hpp"ov::pass::ConvertMod::ConvertMod() {MATCHER_SCOPE(ConvertMod);@@ -36,6 +37,7 @@ ov::pass::ConvertMod::ConvertMod() {// truncated(a / b)auto div = register_new_node<ov::op::v1::Divide>(dividend, divisor);+ disable_divide_conversion(div);auto convert_to_i64 = std::make_shared<ov::op::v0::Convert>(div, ov::element::i64);auto convert = std::make_shared<ov::op::v0::Convert>(convert_to_i64, dividend_et);// truncated(a / b) * bdiff --git a/src/plugins/template/tests/functional/skip_tests_config.cpp b/src/plugins/template/tests/functional/skip_tests_config.cppindex 351c65e4ea9..eff8ed3f761 100644--- a/src/plugins/template/tests/functional/skip_tests_config.cpp+++ b/src/plugins/template/tests/functional/skip_tests_config.cpp@@ -91,17 +91,11 @@ std::vector<std::string> disabledTestPatterns() {R"(.*InferRequestQueryStateExceptionTest.*inferreq_smoke_QueryState_ExceptionTest.*)",R"(.*OVInferRequestCheckTensorPrecision.*get(Input|Output|Inputs|Outputs)From.*FunctionWith(Single|Several).*type=(u4|u1|i4|boolean).*)",R"(.*LSTMSequence_With_Hardcoded_Refs.*ReferenceLSTMSequenceTest.*iType=f16.*)",- // CVS-111443- R"(.*eltwiseOpType=Mod_secondaryInputType=PARAMETER_opType=VECTOR_NetType=(f16|f32).*)",// Interpreter backend doesn't implement evaluate method for OP Multiply (by GroupNormalizationDecomposition)R"(.*ReferenceGroupNormalization.*_f64*)",// Precision not high enough to get exact result for the complex test cases// (both tiny values and very high values necessary)R"(.*ReferenceInverse.*bf16.*[4,4].*)",- R"(.*smoke_CompareWithRefs_static/EltwiseLayerTest.Inference/IS=\(\[\]_\)_TS=.*(4.4.200|1.10.200|10.200|2.200|1.10.100|4.4.16).*_eltwise_op_type=Mod_secondary_input_type=PARAMETER_opType=VECTOR_model_type=f32_InType=dynamic_OutType=dynamic.*)",- R"(.*smoke_CompareWithRefs_static/EltwiseLayerTest.Inference/IS=.*_TS=\(\(2.17.5.1\)_\(1.17.1.4\)_\)_eltwise_op_type=Mod_secondary_input_type=PARAMETER_opType=VECTOR_model_type=f16_InType=dynamic_OutType=dynamic_.*)",- R"(.*smoke_CompareWithRefs_static/EltwiseLayerTest.Inference/IS=.*_TS=.*(2.200|10.200|1.10.100|4.4.16|1.2.4|1.4.4|1.4.4.1).*eltwise_op_type=Mod_secondary_input_type=PARAMETER_opType=VECTOR_model_type=f16_InType=dynamic_OutType=dynamic.*)",- R"(.*smoke_CompareWithRefs_static/EltwiseLayerTest.Inference/IS=.*_TS=.*2.*eltwise_op_type=Pow_secondary_input_type=PARAMETER_opType=VECTOR_model_type=f32_InType=dynamic_OutType=dynamic.*)",// model import is not supportedR"(.*OVCompiledModelBaseTest.import_from_.*)"};#ifdef _WIN32