From 8fe1ef0b4196cd8d68639feb6207cff557ed9e17 Mon Sep 17 00:00:00 2001 From: Jan Iwaszkiewicz Date: Wed, 15 Jul 2020 12:48:53 +0200 Subject: [PATCH] Reverse Sequence code clean up (#1303) --- ngraph/src/ngraph/op/reverse_sequence.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ngraph/src/ngraph/op/reverse_sequence.cpp b/ngraph/src/ngraph/op/reverse_sequence.cpp index e7ffb52..b3d0b92 100644 --- a/ngraph/src/ngraph/op/reverse_sequence.cpp +++ b/ngraph/src/ngraph/op/reverse_sequence.cpp @@ -62,7 +62,7 @@ void op::ReverseSequence::validate_and_infer_types() this, indices_rank.is_dynamic() || indices_rank.get_length() == 1, "Sequence indices must be a 1-dimensional tensor (sequence indices shape: ", - get_input_partial_shape(1), + indices_shape, ")."); PartialShape output_shape{input_shape}; @@ -94,7 +94,5 @@ void op::ReverseSequence::validate_and_infer_types() shared_ptr op::ReverseSequence::clone_with_new_inputs(const OutputVector& new_args) const { check_new_args_count(this, new_args); - auto res = - make_shared(new_args.at(0), new_args.at(1), m_batch_axis, m_seq_axis); - return move(res); + return make_shared(new_args.at(0), new_args.at(1), m_batch_axis, m_seq_axis); } -- 2.7.4