projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
858ad41
)
Initialize the transformer rng in the base data layer
author
Kai Li
<kaili_kloud@163.com>
Wed, 3 Sep 2014 07:13:26 +0000
(15:13 +0800)
committer
Kai Li
<kaili_kloud@163.com>
Wed, 3 Sep 2014 07:32:29 +0000
(15:32 +0800)
src/caffe/layers/base_data_layer.cpp
patch
|
blob
|
history
diff --git
a/src/caffe/layers/base_data_layer.cpp
b/src/caffe/layers/base_data_layer.cpp
index
058e361
..
9b1d558
100644
(file)
--- a/
src/caffe/layers/base_data_layer.cpp
+++ b/
src/caffe/layers/base_data_layer.cpp
@@
-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>