|
|
|
@ -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)
|
|
|
|
|