Skip to content

Commit

Permalink
Merge pull request BVLC#5521 from kkhoot/fix_lstm_unit_check
Browse files Browse the repository at this point in the history
remove redundant check in LSTMUnitLayer
  • Loading branch information
jeffdonahue authored Apr 13, 2017
2 parents 3d5bed0 + 3a98796 commit f522d9c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/caffe/layers/lstm_unit_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ void LSTMUnitLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
CHECK_EQ(num_instances, bottom[i]->shape(1));
}
hidden_dim_ = bottom[0]->shape(2);
CHECK_EQ(num_instances, bottom[1]->shape(1));
CHECK_EQ(4 * hidden_dim_, bottom[1]->shape(2));
top[0]->ReshapeLike(*bottom[0]);
top[1]->ReshapeLike(*bottom[0]);
Expand Down

0 comments on commit f522d9c

Please sign in to comment.