Skip to content

Commit

Permalink
[ci unnitest fix] dgc optimizer (#49741)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhen38 authored Jan 12, 2023
1 parent 438975f commit 81ec63a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _get_regularization_param(self, regularization):

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
Expand Down

0 comments on commit 81ec63a

Please sign in to comment.