Skip to content

Commit

Permalink
Merge pull request #3490 from fyu/spaceplus
Browse files Browse the repository at this point in the history
remove extra space before +
  • Loading branch information
jeffdonahue committed Dec 29, 2015
2 parents 08c5dfd + 708c1a1 commit b086cc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/caffe/solvers/adam_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void AdamSolver<Dtype>::ComputeUpdateValue(int param_id, Dtype rate) {
Blob<Dtype>* val_v = this->history_[param_id + update_history_offset].get();
Blob<Dtype>* 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();
Expand Down
2 changes: 1 addition & 1 deletion tools/caffe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>(solver_param.device_id());
} else { // Set default GPU if unspecified
FLAGS_gpu = "" + boost::lexical_cast<string>(0);
Expand Down

0 comments on commit b086cc3

Please sign in to comment.