Skip to content

Commit

Permalink
data_rank check for axis
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-esir committed Dec 17, 2020
1 parent 59d5c23 commit 8b798f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngraph/core/src/op/gather_elements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void op::v6::GatherElements::validate_and_infer_types()
auto indices_rank = indices_pshape.rank();

int64_t axis = m_axis;
if (m_axis < 0)
if (m_axis < 0 && data_rank.is_static())
axis += data_rank.get_length();

set_output_type(0, data_type, indices_pshape);
Expand Down

0 comments on commit 8b798f6

Please sign in to comment.