Skip to content

Commit

Permalink
Removed incorrect extra copy rt_info which break PortDescriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sidorova committed May 17, 2023
1 parent ec5920b commit a690418
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions src/common/snippets/src/pass/convert_power_to_powerstatic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <snippets/itt.hpp>
#include "snippets/snippets_isa.hpp"
#include "snippets/pass/convert_power_to_powerstatic.hpp"
#include <ngraph/rt_info.hpp>


ngraph::snippets::pass::ConvertPowerToPowerStatic::ConvertPowerToPowerStatic() {
Expand All @@ -22,7 +21,6 @@ ngraph::snippets::pass::ConvertPowerToPowerStatic::ConvertPowerToPowerStatic() {
auto value = scalar->cast_vector<float>()[0];
auto power_static = std::make_shared<snippets::op::PowerStatic>(power->input(0).get_source_output(), value);
power_static->set_friendly_name(power->get_friendly_name());
ngraph::copy_runtime_info(power, power_static);
ngraph::replace_node(power, power_static);

return true;
Expand Down
5 changes: 0 additions & 5 deletions src/common/snippets/src/pass/insert_movebroadcast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <ngraph/pattern/op/wrap_type.hpp>

#include <ngraph/opsets/opset1.hpp>
#include <ngraph/rt_info.hpp>

#include <numeric>

Expand Down Expand Up @@ -49,10 +48,6 @@ ngraph::Output<ngraph::Node> ngraph::snippets::pass::InsertMoveBroadcast::Broadc
ov::PartialShape broadcasted_shape = normalized_shape;
*broadcasted_shape.rbegin() = *target_shape.rbegin();
const auto broadcast_node = std::make_shared<ngraph::snippets::op::BroadcastMove>(value, broadcasted_shape);
// BroadcastMove should be immediately executed after its input op (input op is node with output which should be broadcasted).
// For example, to execute Broadcast outside of a Loop We transfer control dependents and copy rt info
broadcast_node->add_node_control_dependents(value.get_node_shared_ptr());
ov::copy_runtime_info(value.get_node_shared_ptr(), broadcast_node);

return broadcast_node->output(0);
}
Expand Down
6 changes: 0 additions & 6 deletions src/common/snippets/src/pass/propagate_precision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <memory>
#include "ov_ops/type_relaxed.hpp"
#include "snippets/itt.hpp"
#include "ngraph/rt_info.hpp"

using namespace ngraph;

Expand Down Expand Up @@ -130,7 +129,6 @@ bool ngraph::snippets::pass::PropagatePrecision::run_on_model(const std::shared_
auto convert = std::make_shared<ngraph::snippets::op::ConvertSaturation>(
parent_output,
required_after);
ngraph::copy_runtime_info(parent_output.get_node_shared_ptr(), convert);
op->set_argument(op_input.get_index(), convert);
continue;
}
Expand All @@ -149,7 +147,6 @@ bool ngraph::snippets::pass::PropagatePrecision::run_on_model(const std::shared_
auto convert = std::make_shared<ngraph::snippets::op::ConvertSaturation>(
existing_convert->get_input_node_shared_ptr(0),
required_after);
ngraph::copy_runtime_info(parent_output.get_node_shared_ptr(), convert);
op->set_argument(op_input.get_index(), convert);
continue;
}
Expand All @@ -158,7 +155,6 @@ bool ngraph::snippets::pass::PropagatePrecision::run_on_model(const std::shared_
auto convert = std::make_shared<ngraph::snippets::op::ConvertSaturation>(
existing_convert->output(0),
required_after);
ngraph::copy_runtime_info(existing_convert->output(0).get_node()->shared_from_this(), convert);
op->set_argument(op_input.get_index(), convert);
}
}
Expand All @@ -180,7 +176,6 @@ bool ngraph::snippets::pass::PropagatePrecision::run_on_model(const std::shared_
auto convert = std::make_shared<ngraph::snippets::op::ConvertSaturation>(
result->get_input_node_shared_ptr(0),
expected_type);
ngraph::copy_runtime_info(result->get_input_node_shared_ptr(0), convert);
result->set_argument(0, convert);
}
}
Expand Down Expand Up @@ -223,7 +218,6 @@ bool ngraph::snippets::pass::PropagatePrecision::validate_and_infer_types_and_re
auto convert = std::make_shared<ngraph::snippets::op::ConvertSaturation>(
output,
op_output_types[i]);
ngraph::copy_runtime_info(output.get_node_shared_ptr(), convert);

for (auto& input : output.get_target_inputs()) {
auto child = input.get_node();
Expand Down

0 comments on commit a690418

Please sign in to comment.