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:
bb5f9e6
)
Initialize the RNG generator with an orthogonally newed Generator
author
Kai Li
<kaili_kloud@163.com>
Tue, 17 Jun 2014 05:35:59 +0000
(13:35 +0800)
committer
Kai Li
<kaili_kloud@163.com>
Fri, 20 Jun 2014 09:28:07 +0000
(17:28 +0800)
src/caffe/common.cpp
patch
|
blob
|
history
diff --git
a/src/caffe/common.cpp
b/src/caffe/common.cpp
index
218feb7
..
6eadfc7
100644
(file)
--- a/
src/caffe/common.cpp
+++ b/
src/caffe/common.cpp
@@
-126,7
+126,7
@@
class Caffe::RNG::Generator {
shared_ptr<caffe::rng_t> rng_;
};
-Caffe::RNG::RNG() : generator_(new Generator) { }
+Caffe::RNG::RNG() : generator_(new Generator
()
) { }
Caffe::RNG::RNG(unsigned int seed) : generator_(new Generator(seed)) { }