From 52aac0f991d2ca91dfc48220d0cf12b7917cda85 Mon Sep 17 00:00:00 2001 From: JuncaiPeng <13006307475@163.com> Date: Sun, 27 Sep 2020 11:39:44 +0000 Subject: [PATCH] up, test=develop;test=document_fix --- python/paddle/fluid/param_attr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/param_attr.py b/python/paddle/fluid/param_attr.py index bf7d1f7c08a..43f2ac91abc 100644 --- a/python/paddle/fluid/param_attr.py +++ b/python/paddle/fluid/param_attr.py @@ -236,9 +236,10 @@ class WeightNormParamAttr(ParamAttr): optimizer is :math:`global\_lr * parameter\_lr * scheduler\_factor`. Default 1.0. regularizer (WeightDecayRegularizer, optional): Regularization strategy. There are - two method: :ref:`api_paddle_regularizer_L1Decay` , :ref:`api_paddle_regularizer_L2Decay`. + two method: :ref:`api_paddle_fluid_regularizer_L1Decay` , + :ref:`api_paddle_fluid_regularizer_L2DecayRegularizer`. If regularizer isralso set in ``optimizer`` - (such as :ref:`api_paddle_optimizer_SGD` ), that regularizer setting in + (such as :ref:`api_paddle_optimizer_SGDOptimizer` ), that regularizer setting in optimizer will be ignored. Default None, meaning there is no regularization. trainable(bool, optional): Whether this parameter is trainable. Default True. do_model_average(bool, optional): Whether this parameter should do model average. -- GitLab