Skip to content

Commit

Permalink
[VISUALIZE_TREE] Skip visualizing symbols on static dimensions (openv…
Browse files Browse the repository at this point in the history
…inotoolkit#24025)

### Details:
 - *Skip visualizing symbols on static dimensions*
  • Loading branch information
jane-intel authored Apr 16, 2024
1 parent 42f1cb0 commit 92bf2a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/core/src/pass/visualize_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,14 @@ static std::string pretty_partial_shape(
if (!first) {
str << ",";
}
if (const auto& symbol = d.get_symbol()) {
const auto& root = ov::symbol::ancestor_of(symbol);
if (symbol_map.count(root))
str << "<" << symbol_map.at(root) << ">";
else
str << "<?>";
if (d.is_dynamic()) {
if (const auto& symbol = d.get_symbol()) {
const auto& root = ov::symbol::ancestor_of(symbol);
if (symbol_map.count(root))
str << "<" << symbol_map.at(root) << ">";
else
str << "<?>";
}
}
str << d;
first = false;
Expand Down

0 comments on commit 92bf2a2

Please sign in to comment.