diff --git a/python/paddle/nn/layer/common.py b/python/paddle/nn/layer/common.py index be99f722cf9d8251068227e14c9835b055f75fad..0aa9d6667a07fa7a50659fd9b18bbc863e13aca2 100644 --- a/python/paddle/nn/layer/common.py +++ b/python/paddle/nn/layer/common.py @@ -96,9 +96,9 @@ class Linear(Layer): in_features (int): The number of input units. out_features (int): The number of output units. weight_attr (ParamAttr, optional): The attribute for the learnable - weight of this layer. The default value is None and the weight will be - initialized to zero. For detailed information, please refer to - paddle.ParamAttr. + weight of this layer. The default value is None. If the Initializer of the + param_attr is not set, the parameter is initialized with Xavier. + For detailed information, please refer to paddle.ParamAttr. bias_attr (ParamAttr|bool, optional): The attribute for the learnable bias of this layer. If it is set to False, no bias will be added to the output. If it is set to None or one kind of ParamAttr, a bias parameter will