Skip to content

Commit

Permalink
Update src/frontends/ir/src/ir_deserializer.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
  • Loading branch information
gkrivor and praasz authored Jun 24, 2024
1 parent d5593e1 commit 34c6a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frontends/ir/src/ir_deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,8 @@ void ov::XmlDeserializer::read_meta_data(const std::shared_ptr<ov::Model>& model
// Old version may produce nodes like <name value="..."/>, but it may brake xml-naming convention
// Now it should look like <info name="..." value="..."/>.
// Also we keep an option to read an old XMLs where it doesn't have name attribute
auto name_attr = data.attribute("name");
auto node_name = name_attr.empty() ? data.name() : name_attr.value();
const auto name_attr = data.attribute("name");
const auto node_name = name_attr.empty() ? data.name() : name_attr.value();
if (!data.attribute("value").empty()) {
rt_info[node_name] = pugixml::get_str_attr(data, "value");
} else {
Expand Down

0 comments on commit 34c6a26

Please sign in to comment.