We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0760043 commit 01df52aCopy full SHA for 01df52a
paddle/optimizer/sgd_optimizer.cc
@@ -44,7 +44,7 @@ void SGDOptimizer::DeserializeState(const std::string &str) {
44
this->lr_policy_->DeserializeState(lr_state.SerializeAsString());
45
num_sample_passed_ = state.num_sample_passed();
46
ProtoToTensor(state.parameter(), parameter_);
47
- if (momentum_ != 0.0) ProtoToTensor(state.parameter(), momentums_);
+ if (momentum_ != 0.0) ProtoToTensor(state.momentums(), momentums_);
48
}
49
50
} // namespace optimizer
0 commit comments