Skip to content

Commit

Permalink
Fix ranks check in TSConcat transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
itikhono committed Jul 25, 2024
1 parent e27c6f6 commit c6ef20d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TSConcatForward::TSConcatForward() {
return false;
}

if (concat_node->get_output_partial_shape(0).is_dynamic()) {
if (concat_node->get_output_partial_shape(0).rank().is_dynamic()) {
return false;
}
// todo: support dyn rank case
Expand Down Expand Up @@ -83,7 +83,7 @@ TSConcatBackward::TSConcatBackward() {
}

auto concat_node = as_type_ptr<ov::op::v0::Concat>(main_node);
if (concat_node->get_output_partial_shape(0).is_dynamic()) {
if (concat_node->get_output_partial_shape(0).rank().is_dynamic()) {
return false;
}

Expand Down

0 comments on commit c6ef20d

Please sign in to comment.