Skip to content

Commit

Permalink
HDF5DataLayer: remove redundant shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdonahue committed Mar 13, 2015
1 parent bc6e838 commit 4c090ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/caffe/layers/hdf5_data_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ void HDF5DataLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
// Load the first HDF5 file and initialize the line counter.
LoadHDF5FileData(hdf_filenames_[file_permutation_[current_file_]].c_str());
current_row_ = 0;
if (this->layer_param_.hdf5_data_param().shuffle()) {
std::random_shuffle(file_permutation_.begin(), file_permutation_.end());
}

// Reshape blobs.
const int batch_size = this->layer_param_.hdf5_data_param().batch_size();
Expand Down

0 comments on commit 4c090ae

Please sign in to comment.