From 708c1a122c33bd35b0d53630fb74965488e1947a Mon Sep 17 00:00:00 2001 From: Fisher Yu Date: Mon, 28 Dec 2015 22:46:49 -0500 Subject: [PATCH] remove extra space before + --- src/caffe/solvers/adam_solver.cpp | 2 +- tools/caffe.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/caffe/solvers/adam_solver.cpp b/src/caffe/solvers/adam_solver.cpp index cb0fbfe2f78..c3378d3890a 100644 --- a/src/caffe/solvers/adam_solver.cpp +++ b/src/caffe/solvers/adam_solver.cpp @@ -30,7 +30,7 @@ void AdamSolver::ComputeUpdateValue(int param_id, Dtype rate) { Blob* val_v = this->history_[param_id + update_history_offset].get(); Blob* val_t = this->temp_[param_id].get(); - const int t = this->iter_ + 1; + const int t = this->iter_ + 1; const Dtype correction = std::sqrt(Dtype(1) - pow(beta2, t)) / (Dtype(1.) - pow(beta1, t)); const int N = net_params[param_id]->count(); diff --git a/tools/caffe.cpp b/tools/caffe.cpp index 305cfc3635d..6b342ace0c5 100644 --- a/tools/caffe.cpp +++ b/tools/caffe.cpp @@ -164,7 +164,7 @@ int train() { if (FLAGS_gpu.size() == 0 && solver_param.solver_mode() == caffe::SolverParameter_SolverMode_GPU) { if (solver_param.has_device_id()) { - FLAGS_gpu = "" + + FLAGS_gpu = "" + boost::lexical_cast(solver_param.device_id()); } else { // Set default GPU if unspecified FLAGS_gpu = "" + boost::lexical_cast(0);