未验证 提交 7f96abc7 编写于 作者: G Guo Sheng 提交者: GitHub

Merge pull request #6849 from guoshengCS/fix-fluid-lrAttr

Fix lr setting of param_attr in Fluid
......@@ -58,7 +58,9 @@ class ParamAttr(object):
def to_kwargs(self, with_initializer=False):
kwargs = {
'name': self.name,
'learning_rate': self.learning_rate,
'optimize_attr': {
'learning_rate': self.learning_rate
},
'regularizer': self.regularizer,
'trainable': self.trainable,
'clip_attr': self.clip
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册