-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
save parameters into ordered dict. #3701
save parameters into ordered dict. #3701
Conversation
912f3a0
to
4a83dde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM++
Better to add some doc string for class Parameters
so that we can figure out why use OrderedDict
.
@typhoonzero I will add the doc. |
python/paddle/v2/parameters.py
Outdated
Parameters is the name of parameter. The value of Parameters is a plain | ||
:code:`numpy.ndarry` . | ||
`Parameters` manages all the learnable parameters in a neural network. | ||
It stores parameters' information in an OrderedDict, key of which is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key of which is => key is ..., and value is ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
python/paddle/v2/parameters.py
Outdated
`Parameters` manages all the learnable parameters in a neural network. | ||
It stores parameters' information in an OrderedDict, key of which is | ||
the name of a parameter, and value related to a key is a parameter's | ||
configuration, such as initialization mean and std, its size, whether it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
configuration(in protobuf format)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
python/paddle/v2/parameters.py
Outdated
configuration, such as initialization mean and std, its size, whether it is | ||
a static parameter, and so on. | ||
|
||
:param __param_conf__: this member stores the configurations of learnable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove "this member"
python/paddle/v2/parameters.py
Outdated
:param __param_conf__: this member stores the configurations of learnable | ||
parameters in a network in an OrderedDict. The parameters are added by | ||
following their creation order in the neural network one by one: | ||
parameters of the previous layers in a network are careted first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
careted => created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
python/paddle/v2/parameters.py
Outdated
parameters in a network in an OrderedDict. The parameters are added by | ||
following their creation order in the neural network one by one: | ||
parameters of the previous layers in a network are careted first. | ||
When a user iterates over this dict, he can visit parameters in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can visit the parameters from bottom to top by iterating over this dict.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow comments, thank you.
python/paddle/v2/parameters.py
Outdated
Parameters is the name of parameter. The value of Parameters is a plain | ||
:code:`numpy.ndarry` . | ||
`Parameters` manages all the learnable parameters in a neural network. | ||
It stores parameters' information in an OrderedDict, key of which is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
python/paddle/v2/parameters.py
Outdated
`Parameters` manages all the learnable parameters in a neural network. | ||
It stores parameters' information in an OrderedDict, key of which is | ||
the name of a parameter, and value related to a key is a parameter's | ||
configuration, such as initialization mean and std, its size, whether it is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
python/paddle/v2/parameters.py
Outdated
:param __param_conf__: this member stores the configurations of learnable | ||
parameters in a network in an OrderedDict. The parameters are added by | ||
following their creation order in the neural network one by one: | ||
parameters of the previous layers in a network are careted first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
python/paddle/v2/parameters.py
Outdated
parameters in a network in an OrderedDict. The parameters are added by | ||
following their creation order in the neural network one by one: | ||
parameters of the previous layers in a network are careted first. | ||
When a user iterates over this dict, he can visit parameters in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
20586ab
to
313ca88
Compare
313ca88
to
f0b25c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM++
fixes #3704