We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96e7fbe commit 568e059Copy full SHA for 568e059
src/caffe/layers/tile_nd_layer.cpp
@@ -27,7 +27,8 @@ void TileNDLayer<Dtype>::Reshape(
27
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
28
vector<int> top_shape = bottom[0]->shape();
29
for(int i=multiples_.size()-1;i>=0;i--)
30
- top_shape[i] = bottom[0]->shape()[i] * multiples_[i];
+ if (multiples_[i] > 1)
31
+ top_shape[i] = bottom[0]->shape()[i] * multiples_[i];
32
top[0]->Reshape(top_shape);
33
}
34
0 commit comments