diff --git a/python/paddle/fluid/param_attr.py b/python/paddle/fluid/param_attr.py index bf7d1f7c08a6daebc15e6a502f1c41a1ed77bf0c..43f2ac91abc79b893678167f5566dbe28545d980 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.