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:
6ebf2f1
)
seed boost rng with cluster_seedgen by default
author
Jeff Donahue
<jeff.donahue@gmail.com>
Tue, 1 Apr 2014 23:49:34 +0000
(16:49 -0700)
committer
Jeff Donahue
<jeff.donahue@gmail.com>
Tue, 1 Apr 2014 23:49:34 +0000
(16:49 -0700)
src/caffe/common.cpp
patch
|
blob
|
history
diff --git
a/src/caffe/common.cpp
b/src/caffe/common.cpp
index
59cbc56
..
8ead6e4
100644
(file)
--- a/
src/caffe/common.cpp
+++ b/
src/caffe/common.cpp
@@
-121,7
+121,9
@@
class Caffe::RNG::Generator {
};
Caffe::RNG::RNG()
-: generator_(new Generator) { }
+: generator_(new Generator) {
+ generator_->rng = caffe::rng_t(cluster_seedgen());
+}
Caffe::RNG::RNG(unsigned int seed)
: generator_(new Generator) {