fix warning
authorqipeng <pengrobertqi@163.com>
Thu, 18 Sep 2014 22:13:44 +0000 (15:13 -0700)
committerqipeng <pengrobertqi@163.com>
Thu, 18 Sep 2014 22:13:44 +0000 (15:13 -0700)
src/caffe/solver.cpp

index 0810f48..cca3299 100644 (file)
@@ -174,7 +174,7 @@ void Solver<Dtype>::Solve(const char* resume_file) {
   CHECK_GE(average_loss, 1) << "average_cost should be non-negative.";
 
   vector<Dtype> losses;
-  Dtype smoothed_loss;
+  Dtype smoothed_loss = 0;
 
   // For a network that is trained by the solver, no bottom or top vecs
   // should be given, and we will just provide dummy vecs.