Skip to content

Commit f2b29ec

Browse files
committed
fixed lint errors again
1 parent 31a299a commit f2b29ec

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/caffe/solver.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,19 +821,21 @@ void AdaGradSolver<Dtype>::ComputeUpdateValue() {
821821

822822
template <typename Dtype>
823823
void AdaDeltaSolver<Dtype>::PreSolve() {
824-
// Add the extra history entries for AdaDelta after those from SGDSolver::PreSolve
824+
// Add the extra history entries for AdaDelta after those from
825+
// SGDSolver::PreSolve
825826
const vector<shared_ptr<Blob<Dtype> > >& net_params = this->net_->params();
826827
for (int i = 0; i < net_params.size(); ++i) {
827828
const vector<int>& shape = net_params[i]->shape();
828-
this->history_.push_back(shared_ptr<Blob<Dtype> >(new Blob<Dtype>(shape)));
829+
this->history_.push_back(
830+
shared_ptr<Blob<Dtype> >(new Blob<Dtype>(shape)));
829831
}
830832
}
831833

832834
template <typename Dtype>
833835
void AdaDeltaSolver<Dtype>::ComputeUpdateValue() {
834836
const vector<shared_ptr<Blob<Dtype> > >& net_params = this->net_->params();
835837
const vector<float>& net_params_weight_decay =
836-
this->net_->params_weight_decay();
838+
this->net_->params_weight_decay();
837839
Dtype delta = this->param_.delta();
838840
Dtype momentum = this->param_.momentum();
839841
Dtype weight_decay = this->param_.weight_decay();

0 commit comments

Comments
 (0)