Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Rebase with master
Browse files Browse the repository at this point in the history
  • Loading branch information
reminisce committed Apr 13, 2019
1 parent 6924f96 commit 1b6132d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/rnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static bool RNNShape(const nnvm::NodeAttrs& attrs,
"Needed input:[data, parameters, state], got in_shape->size(): " << in_shape->size();
}
const TShape &dshape = (*in_shape)[rnn_enum::kData];
if (dshape.ndim() == 0) return false;
if (!mxnet::ndim_is_known(dshape)) return false;
CHECK_EQ(dshape.ndim(), 3U) \
<< "Input data should be rank-3 tensor of dim [sequence length, batch size, input size]";
// data: [sequence len, batch, input dimension]
Expand Down

0 comments on commit 1b6132d

Please sign in to comment.