Reverse Sequence code clean up (#1303)

This commit is contained in:
Jan Iwaszkiewicz 2020-07-15 12:48:53 +02:00 committed by GitHub
parent ac5217d17f
commit 8fe1ef0b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Node> op::ReverseSequence::clone_with_new_inputs(const OutputVector& new_args) const
{
check_new_args_count(this, new_args);
auto res =
make_shared<ReverseSequence>(new_args.at(0), new_args.at(1), m_batch_axis, m_seq_axis);
return move(res);
return make_shared<ReverseSequence>(new_args.at(0), new_args.at(1), m_batch_axis, m_seq_axis);
}