Skip to content

Commit

Permalink
fix hdf5 data layer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed Sep 26, 2014
1 parent c85b14b commit e8589c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caffe/layers/hdf5_data_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ void HDF5DataLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
// Reshape blobs.
const int batch_size = this->layer_param_.hdf5_data_param().batch_size();
(*top)[0]->Reshape(batch_size, data_blob_.channels(),
data_blob_.width(), data_blob_.height());
data_blob_.height(), data_blob_.width());
(*top)[1]->Reshape(batch_size, label_blob_.channels(),
label_blob_.width(), label_blob_.height());
label_blob_.height(), label_blob_.width());
LOG(INFO) << "output data size: " << (*top)[0]->num() << ","
<< (*top)[0]->channels() << "," << (*top)[0]->height() << ","
<< (*top)[0]->width();
Expand Down

0 comments on commit e8589c6

Please sign in to comment.