Skip to content

Commit

Permalink
Initialize the transformer rng in the base data layer
Browse files Browse the repository at this point in the history
  • Loading branch information
kloudkl committed Sep 3, 2014
1 parent 858ad41 commit a08f111
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/caffe/layers/base_data_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ void BaseDataLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
data_mean_.Reshape(1, datum_channels_, datum_height_, datum_width_);
}
mean_ = data_mean_.cpu_data();
data_transformer_.InitRand();
}

template <typename Dtype>
Expand Down

0 comments on commit a08f111

Please sign in to comment.