From 172739d4935c727d9a20c54236ed08691e8f4d1d Mon Sep 17 00:00:00 2001 From: BrilliantYuKaimin <91609464+BrilliantYuKaimin@users.noreply.github.com> Date: Tue, 31 May 2022 17:21:31 +0800 Subject: [PATCH] test=document_fix Verified (#42919) --- python/paddle/nn/initializer/uniform.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/paddle/nn/initializer/uniform.py b/python/paddle/nn/initializer/uniform.py index cac03b59480..f07883adbb0 100644 --- a/python/paddle/nn/initializer/uniform.py +++ b/python/paddle/nn/initializer/uniform.py @@ -18,19 +18,19 @@ __all__ = [] class Uniform(UniformInitializer): - """The random uniform distribution initializer. + """The uniform distribution initializer. Args: - low (float, optional): lower boundary of the uniform distribution. The default value is -1.0. - high (float, optional): upper boundary of the uniform distribution. The default value is 1.0. - name(str, optional): The default value is None. Normally there is no need for user to set this - property. For more information, please refer to :ref:`api_guide_Name`. + low (float, optional): Lower boundary of the uniform distribution. The default value is :math:`-1.0`. + high (float, optional): Upper boundary of the uniform distribution. The default value is :math:`1.0`. + name (str, optional): For details, please refer to :ref:`api_guide_Name`. Generally, no setting is required. Default: None. Returns: - A parameter initialized by random uniform distribution. + A parameter initialized by uniform distribution. Examples: .. code-block:: python + :name: initializer_Uniform-example import paddle -- GitLab