From 877289c4ca0b1d0d9df30b8c29f490f9ee117fe2 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Fri, 28 Dec 2018 14:51:38 +0800 Subject: [PATCH] fix dist_ctr getenv, test=develop --- python/paddle/fluid/tests/unittests/dist_ctr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/dist_ctr.py b/python/paddle/fluid/tests/unittests/dist_ctr.py index e696ef23bd..fd09d47258 100644 --- a/python/paddle/fluid/tests/unittests/dist_ctr.py +++ b/python/paddle/fluid/tests/unittests/dist_ctr.py @@ -99,10 +99,10 @@ class TestDistCTR2x2(TestDistRunnerBase): inference_program = paddle.fluid.default_main_program().clone() 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: regularization = fluid.regularizer.L2DecayRegularizer( - regularization_coeff=1e-3) + regularization_coeff=1e-1) sgd_optimizer = fluid.optimizer.SGD(learning_rate=0.0001, regularization=regularization) -- GitLab