提交 41d8bcdc 编写于 作者: Y Yu Yang

Fix models #725

上级 5a159f34
......@@ -223,6 +223,8 @@ class Optimizer(object):
params_grads = append_backward(loss, parameter_list, no_grad_set,
[error_clip_callback])
params_grads = sorted(params_grads, key=lambda x: x[0].name)
params_grads = append_gradient_clip_ops(params_grads)
# Add regularization if any
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册