From 491bb6a10d2482e55eefc29cfc6de633fd07160b Mon Sep 17 00:00:00 2001 From: chengduoZH Date: Wed, 20 Jun 2018 11:19:27 +0800 Subject: [PATCH] refine doc --- python/paddle/fluid/param_attr.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/python/paddle/fluid/param_attr.py b/python/paddle/fluid/param_attr.py index 0ff4bec774c..0a42b9fca8d 100644 --- a/python/paddle/fluid/param_attr.py +++ b/python/paddle/fluid/param_attr.py @@ -71,6 +71,12 @@ class ParamAttr(object): """ Set the default initializer, the initializer should be Constant, Uniform, Normal, Xavier, MSRA. + + Args: + initializer(Initializer): the initializer to set. + + Returns: + None """ if initializer is None: if self.initializer is None: @@ -85,12 +91,24 @@ class ParamAttr(object): def set_default_param_initializer(self): """ Set the default initializer for the parameter with Xavier. + + Args: + None. + + Returns: + None. """ self.set_default_initializer(Xavier()) def set_default_bias_initializer(self): """ Set the default initializer for the bias with Constant(0.0). + + Args: + None. + + Returns: + None. """ self.set_default_initializer(Constant(0.0)) -- GitLab