diff --git a/core/model.py b/core/model.py index bb2040e44458d5a402d54bfc780ae501c9c9d06d..e96d01fe0bbcc0541a2b5aea458e2cb34fa89303 100755 --- a/core/model.py +++ b/core/model.py @@ -138,9 +138,7 @@ class ModelBase(object): os.environ["FLAGS_communicator_is_sgd_optimizer"] = '0' if name == "SGD": - reg = envs.get_global_env("hyper_parameters.reg", 0.0001) - optimizer_i = fluid.optimizer.SGD( - lr, regularization=fluid.regularizer.L2DecayRegularizer(reg)) + optimizer_i = fluid.optimizer.SGD(lr) elif name == "ADAM": optimizer_i = fluid.optimizer.Adam(lr, lazy_mode=True) elif name == "ADAGRAD":