未验证 提交 3d4d7c19 编写于 作者: A Aurelius84 提交者: GitHub

[UnitTest]Fix deprecate fluid.regularizer test=document_fix (#53805)

上级 b428e8f3
...@@ -75,7 +75,7 @@ def optimizer_setting(parameter_list=None): ...@@ -75,7 +75,7 @@ def optimizer_setting(parameter_list=None):
optimizer = fluid.optimizer.Momentum( optimizer = fluid.optimizer.Momentum(
learning_rate=base_lr, learning_rate=base_lr,
momentum=momentum_rate, momentum=momentum_rate,
regularization=fluid.regularizer.L2Decay(l2_decay), regularization=paddle.regularizer.L2Decay(l2_decay),
parameter_list=parameter_list, parameter_list=parameter_list,
) )
......
...@@ -75,7 +75,7 @@ def optimizer_setting(parameter_list=None): ...@@ -75,7 +75,7 @@ def optimizer_setting(parameter_list=None):
optimizer = fluid.optimizer.Momentum( optimizer = fluid.optimizer.Momentum(
learning_rate=base_lr, learning_rate=base_lr,
momentum=momentum_rate, momentum=momentum_rate,
regularization=fluid.regularizer.L2Decay(l2_decay), regularization=paddle.regularizer.L2Decay(l2_decay),
parameter_list=parameter_list, parameter_list=parameter_list,
) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册