reminisce commented on a change in pull request #9306: Sequence Operator
Improvements
URL: https://github.com/apache/incubator-mxnet/pull/9306#discussion_r160509018
##########
File path: src/operator/sequence_last-inl.h
##########
@@ -184,17 +252,22 @@ class SequenceLastProp : public OperatorProperty {
CHECK_EQ(in_shape->size(), param_.use_sequence_length ? 2U : 1U)
<< "Input:[data, sequence_length]";
+ if ((param_.axis != 0) && (param_.axis != 1)) {
Review comment:
You can simplify this by using CHECK.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services