From a4251df03e866f412471b06b84ee9a33083c6b3f Mon Sep 17 00:00:00 2001 From: Bartek Szmelczynski Date: Fri, 26 Mar 2021 04:39:29 +0100 Subject: [PATCH] Visit attribute analysis (#4654) * remove unecessary code from visit_atributes functions * revert the changes for constant * revert changes for node, constatn, prior_box_clustered and att_types * fix style * fix style v2 --- .../legacy_api/src/ngraph_ops/prior_box_clustered_ie.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/inference-engine/src/legacy_api/src/ngraph_ops/prior_box_clustered_ie.cpp b/inference-engine/src/legacy_api/src/ngraph_ops/prior_box_clustered_ie.cpp index e86f19a847e..1b822ee0ce8 100644 --- a/inference-engine/src/legacy_api/src/ngraph_ops/prior_box_clustered_ie.cpp +++ b/inference-engine/src/legacy_api/src/ngraph_ops/prior_box_clustered_ie.cpp @@ -44,15 +44,6 @@ bool op::PriorBoxClusteredIE::visit_attributes(AttributeVisitor& visitor) { visitor.on_attribute("step", step); visitor.on_attribute("step_w", m_attrs.step_widths); visitor.on_attribute("step_h", m_attrs.step_heights); - if (step != 0) { - // deserialization: if step_w/h is 0 replace it with step - if (m_attrs.step_widths == 0) { - m_attrs.step_widths = step; - } - if (m_attrs.step_heights == 0) { - m_attrs.step_heights = step; - } - } visitor.on_attribute("width", m_attrs.widths); visitor.on_attribute("height", m_attrs.heights); visitor.on_attribute("clip", m_attrs.clip);