-
Notifications
You must be signed in to change notification settings - Fork 823
Refine documents of PARL #43
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
Conversation
- remove not used files
- add benchmark for DQN and DDPG
- add Parameters management Readme
- fix dependence of examples
parl/framework/model_base.py
Outdated
@@ -124,23 +124,39 @@ class Model(Network): | |||
In conclusion, Model is responsible for forward and | |||
Algorithm is responsible for backward. | |||
|
|||
Model can also be used to construct target model, which has the same structure as initial model. | |||
Model can also use deepcopy way to construct target model, which has the same structure as initial model. | |||
Note that parameters in the initial model havn't been copied to target model. |
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.
Note that only the model definition are copied here. To copy the parameters from the current model to the target model, you must explicitly use sync_params_to
function after the program is initialized.
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
parl/layers/layer_wrappers.py
Outdated
@@ -13,6 +13,21 @@ | |||
# limitations under the License. | |||
""" | |||
Wrappers for fluid.layers so that the layers can share parameters conveniently. |
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.
Wrappers for fluid.layers. It helps to easily share parameters between layers.
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