From 5833781ddbc476d77cf5593f1f8b34758988b9a8 Mon Sep 17 00:00:00 2001 From: Georgy Krivoruchko Date: Fri, 1 Nov 2024 12:03:18 +0400 Subject: [PATCH] [ONNX] Disabled constant folding for Subtract branch of DequantizeLinear-21 (#27359) ### Details: - Disabled constant folding for Subtract branch of DequantizeLinear-21 ### Tickets: - 156329 --- src/frontends/onnx/frontend/src/op/dequantize_linear.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/onnx/frontend/src/op/dequantize_linear.cpp b/src/frontends/onnx/frontend/src/op/dequantize_linear.cpp index d7b5214f3e53f4..47fcc7af60bf61 100644 --- a/src/frontends/onnx/frontend/src/op/dequantize_linear.cpp +++ b/src/frontends/onnx/frontend/src/op/dequantize_linear.cpp @@ -18,6 +18,7 @@ #include "openvino/op/subtract.hpp" #include "openvino/op/transpose.hpp" #include "openvino/op/unsqueeze.hpp" +#include "transformations/rt_info/disable_constant_folding.hpp" #include "utils/common.hpp" #include "utils/reshape.hpp" using namespace ov::op; @@ -241,6 +242,7 @@ ov::OutputVector dequantize_linear(const ov::frontend::onnx::Node& node) { zp = inputs[2]; if (zp.get_element_type() != scale.get_element_type()) { zp = std::make_shared(zp, scale_type); + disable_constant_folding(zp.get_node_shared_ptr()); } zp = std::make_shared(zp, unsqueezed_axes); }