fix accidental revert of Init() from f5c28581
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 15 May 2014 17:20:43 +0000 (10:20 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Thu, 15 May 2014 17:20:43 +0000 (10:20 -0700)
python/caffe/_caffe.cpp

index c4460b9..3326186 100644 (file)
@@ -142,9 +142,8 @@ struct CaffeNet {
   }
 
   CaffeNet(string param_file, string pretrained_param_file) {
-    CheckFile(param_file);
+    Init(param_file);
     CheckFile(pretrained_param_file);
-    net_.reset(new Net<float>(param_file));
     net_->CopyTrainedLayersFrom(pretrained_param_file);
   }