Skip to content

Commit

Permalink
[ci unnitest fix] dgc optimizer (PaddlePaddle#49741)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhen38 authored and yjjiang11 committed Jan 13, 2023
1 parent 683aa14 commit a8f2d0e
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 a8f2d0e

Please sign in to comment.