Skip to content

Commit

Permalink
ImageDataLayer outputs 1D labels
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdonahue committed Nov 26, 2014
1 parent 5c5e01d commit 769298d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/caffe/layers/image_data_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ void ImageDataLayer<Dtype>::DataLayerSetUp(const vector<Blob<Dtype>*>& bottom,
<< top[0]->channels() << "," << top[0]->height() << ","
<< top[0]->width();
// label
top[1]->Reshape(batch_size, 1, 1, 1);
this->prefetch_label_.Reshape(batch_size, 1, 1, 1);
vector<int> label_shape(1, batch_size);
top[1]->Reshape(label_shape);
this->prefetch_label_.Reshape(label_shape);
}

template <typename Dtype>
Expand Down

0 comments on commit 769298d

Please sign in to comment.