Skip to content

Commit

Permalink
[TF FE][SDL] Fix performance inefficiencies (openvinotoolkit#26644)
Browse files Browse the repository at this point in the history
**Details:** Fix performance inefficiencies

**Ticket:** 123298

Signed-off-by: Kazantsev, Roman <[email protected]>
  • Loading branch information
rkazants authored Sep 18, 2024
1 parent 6c9d796 commit 4ed5ed0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/frontends/tensorflow/src/decoder_proto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void parse_producer_name(const std::string& producer_port_name,
"Port id is not specified or not a number. Value: ",
port_id);
producer_output_port_index = std::stoi(port_id);
producer_output_port_name = port_name;
producer_output_port_name = std::move(port_name);
return;
} else if (first_colon != std::string::npos) {
// just one colon case
Expand Down Expand Up @@ -186,7 +186,7 @@ std::vector<::tensorflow::AttrValue> DecoderProto::decode_attribute_helper(const
auto attr_map = m_node_def->attr();
if (attr_map.contains(name)) {
auto value = m_node_def->attr().at(name);
return {value};
return {std::move(value)};
} else {
return {};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Merge : public InternalOperation {
cf_marker_exists(this_node),
"[TensorFlow Frontend] internal error: Switch node has not set conditional flow marker");
auto cf_marker = get_cf_marker(this_node);
for (auto eliminated_marker : cf_marker.merge_eliminated_markers) {
for (const auto& eliminated_marker : cf_marker.merge_eliminated_markers) {
resulted_indices.push_back(eliminated_marker.first);
}
return resulted_indices;
Expand Down

0 comments on commit 4ed5ed0

Please sign in to comment.