зеркало из https://github.com/microsoft/caffe.git
remove extra space before +
This commit is contained in:
Родитель
08c5dfd53e
Коммит
708c1a122c
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче