File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -821,19 +821,21 @@ void AdaGradSolver<Dtype>::ComputeUpdateValue() {
821821
822822template <typename Dtype>
823823void 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
832834template <typename Dtype>
833835void 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 ();
You can’t perform that action at this time.
0 commit comments