提交 877289c4 编写于 作者: Q Qiao Longfei

fix dist_ctr getenv, test=develop

上级 1e042228
...@@ -99,10 +99,10 @@ class TestDistCTR2x2(TestDistRunnerBase): ...@@ -99,10 +99,10 @@ class TestDistCTR2x2(TestDistRunnerBase):
inference_program = paddle.fluid.default_main_program().clone() inference_program = paddle.fluid.default_main_program().clone()
regularization = None regularization = None
use_l2_decay = bool(os.getenv(['USE_L2_DECAY'], 0)) use_l2_decay = bool(os.getenv('USE_L2_DECAY', 0))
if use_l2_decay: if use_l2_decay:
regularization = fluid.regularizer.L2DecayRegularizer( regularization = fluid.regularizer.L2DecayRegularizer(
regularization_coeff=1e-3) regularization_coeff=1e-1)
sgd_optimizer = fluid.optimizer.SGD(learning_rate=0.0001, sgd_optimizer = fluid.optimizer.SGD(learning_rate=0.0001,
regularization=regularization) regularization=regularization)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册