From 81ec63a420e3a691aed44db61869daa2ddb2f0d7 Mon Sep 17 00:00:00 2001 From: wangzhen38 <41941775+wangzhen38@users.noreply.github.com> Date: Thu, 12 Jan 2023 11:25:52 +0800 Subject: [PATCH] [ci unnitest fix] dgc optimizer (#49741) --- .../paddle/distributed/fleet/meta_optimizers/dgc_optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/distributed/fleet/meta_optimizers/dgc_optimizer.py b/python/paddle/distributed/fleet/meta_optimizers/dgc_optimizer.py index 96b3802a794..9dce0d540a1 100644 --- a/python/paddle/distributed/fleet/meta_optimizers/dgc_optimizer.py +++ b/python/paddle/distributed/fleet/meta_optimizers/dgc_optimizer.py @@ -100,7 +100,7 @@ class DGCMomentumOptimizer(Optimizer): if regularization is not None: regular_coeff = regularization._regularization_coeff - from paddle.regularizer import L1Decay, L2Decay + from paddle.fluid.regularizer import L1Decay, L2Decay if isinstance(regularization, L1Decay): regular_type = 1 -- GitLab