提交 f0b25c4c 编写于 作者: C caoying03

follow comments to refine the comments.

上级 be4c0123
...@@ -44,21 +44,20 @@ def create(layers): ...@@ -44,21 +44,20 @@ def create(layers):
class Parameters(object): class Parameters(object):
""" """
`Parameters` manages all the learnable parameters in a neural network. `Parameters` manages all the learnable parameters in a neural network.
It stores parameters' information in an OrderedDict, key of which is It stores parameters' information in an OrderedDict. The key is
the name of a parameter, and value related to a key is a parameter's the name of a parameter, and value is a parameter's configuration(in
configuration, such as initialization mean and std, its size, whether it is protobuf format), such as initialization mean and std, its size, whether it
a static parameter, and so on. is a static parameter, and so on.
:param __param_conf__: this member stores the configurations of learnable :param __param_conf__: store the configurations of learnable parameters in
parameters in a network in an OrderedDict. The parameters are added by the network in an OrderedDict. Parameter is added one by one into the
following their creation order in the neural network one by one: dict by following their created order in the network: parameters of
parameters of the previous layers in a network are careted first. the previous layers in a network are careted first. You can visit the
When a user iterates over this dict, he can visit parameters in the parameters from bottom to top by iterating over this dict.
network from button to up.
:type __param_conf__: OrderedDict :type __param_conf__: OrderedDict
:param __gradient_machines__: all of the parameters in a neural network are :param __gradient_machines__: all of the parameters in a neural network are
appended to a Paddle gradient machine, which is used internally to copy appended to a PaddlePaddle gradient machine, which is used internally to
the parameter values between the C++ and Python end. copy parameter values between C++ and Python end.
:type __gradient_machines__: list :type __gradient_machines__: list
:param __tmp_params__: a dict to store dummy parameters if no :param __tmp_params__: a dict to store dummy parameters if no
__gradient_machines__ is appended to `Parameters`. __gradient_machines__ is appended to `Parameters`.
...@@ -271,7 +270,7 @@ class Parameters(object): ...@@ -271,7 +270,7 @@ class Parameters(object):
append gradient machine to parameters. This method is used internally in append gradient machine to parameters. This method is used internally in
Trainer.train. Trainer.train.
:param gradient_machine: Paddle C++ GradientMachine object. :param gradient_machine: PaddlePaddle C++ GradientMachine object.
:type gradient_machine: api.GradientMachine :type gradient_machine: api.GradientMachine
:return: :return:
""" """
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册