提交 08a7cdee 编写于 作者: M minqiyang

Polish code

test=develop
上级 20ead9e6
......@@ -275,7 +275,7 @@ class Optimizer(object):
self._create_global_learning_rate()
optimize_ops = []
if framework._in_dygraph_mode():
if framework.in_dygraph_mode():
for param_and_grad in parameters_and_grads:
if param_and_grad[1] is None:
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册