Initialize the RNG generator with an orthogonally newed Generator
authorKai Li <kaili_kloud@163.com>
Tue, 17 Jun 2014 05:35:59 +0000 (13:35 +0800)
committerKai Li <kaili_kloud@163.com>
Fri, 20 Jun 2014 09:28:07 +0000 (17:28 +0800)
src/caffe/common.cpp

index 218feb7..6eadfc7 100644 (file)
@@ -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)) { }