Skip to content

Commit

Permalink
Fixed two typo-bugs: insertLoops & collapse_subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNovoselov committed Nov 7, 2022
1 parent 301edcb commit b437d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/snippets/src/pass/collapse_subgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ auto has_supported_in_out(const std::shared_ptr<const Node> &n) -> bool {
// So i32 is supported exclusively for transposes
return t.get_partial_shape().is_static() &&
(supported_data_types.count(t.get_element_type()) != 0 ||
ov::is_type<const opset1::Transpose>(n) && t.get_element_type() == ngraph::element::i32);
(ov::is_type<const opset1::Transpose>(n) && t.get_element_type() == ngraph::element::i32));
};
const auto & inputs = n->inputs();
const auto & outputs = n->outputs();
Expand Down
2 changes: 1 addition & 1 deletion src/common/snippets/src/pass/insert_loops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

ngraph::snippets::pass::InsertLoops::InsertLoops(ov::PartialShape master_shape, size_t loop_depth, size_t vector_size)
: m_master_shape(std::move(master_shape)), m_loop_depth(loop_depth), m_vector_size(vector_size) {
if (m_master_shape.size() <= m_loop_depth)
if (m_master_shape.size() < m_loop_depth)
throw ngraph_error("InsertLoops can't insert loops: master shape rank is too small");
}

Expand Down

0 comments on commit b437d7a

Please sign in to comment.