Skip to content

Commit

Permalink
fixed lint errors again
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbache committed Mar 26, 2015
1 parent 31a299a commit f2b29ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/caffe/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,19 +821,21 @@ void AdaGradSolver<Dtype>::ComputeUpdateValue() {

template <typename Dtype>
void AdaDeltaSolver<Dtype>::PreSolve() {
// Add the extra history entries for AdaDelta after those from SGDSolver::PreSolve
// Add the extra history entries for AdaDelta after those from
// SGDSolver::PreSolve
const vector<shared_ptr<Blob<Dtype> > >& net_params = this->net_->params();
for (int i = 0; i < net_params.size(); ++i) {
const vector<int>& shape = net_params[i]->shape();
this->history_.push_back(shared_ptr<Blob<Dtype> >(new Blob<Dtype>(shape)));
this->history_.push_back(
shared_ptr<Blob<Dtype> >(new Blob<Dtype>(shape)));
}
}

template <typename Dtype>
void AdaDeltaSolver<Dtype>::ComputeUpdateValue() {
const vector<shared_ptr<Blob<Dtype> > >& net_params = this->net_->params();
const vector<float>& net_params_weight_decay =
this->net_->params_weight_decay();
this->net_->params_weight_decay();
Dtype delta = this->param_.delta();
Dtype momentum = this->param_.momentum();
Dtype weight_decay = this->param_.weight_decay();
Expand Down

0 comments on commit f2b29ec

Please sign in to comment.