未验证 提交 81ec63a4 编写于 作者: W wangzhen38 提交者: GitHub

[ci unnitest fix] dgc optimizer (#49741)

上级 438975fd
...@@ -100,7 +100,7 @@ class DGCMomentumOptimizer(Optimizer): ...@@ -100,7 +100,7 @@ class DGCMomentumOptimizer(Optimizer):
if regularization is not None: if regularization is not None:
regular_coeff = regularization._regularization_coeff regular_coeff = regularization._regularization_coeff
from paddle.regularizer import L1Decay, L2Decay from paddle.fluid.regularizer import L1Decay, L2Decay
if isinstance(regularization, L1Decay): if isinstance(regularization, L1Decay):
regular_type = 1 regular_type = 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册