-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Polish Non-Layer API #11531
Polish Non-Layer API #11531
Conversation
3cb245d
to
08995ac
Compare
Change the global/default scope instance by Python `with` statement. All | ||
variable in runtime will assigned to the new scope. | ||
|
||
Examples: |
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.
Should we use
.. code-block:: python
for examples?
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.
Only >>>
style is used in the examples of napoleon.
:code:`fluid.Trainer`. Used to configuration how to save checkpoint. | ||
|
||
Args: | ||
checkpoint_dir(str): Directory path to save check point. Default is 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.
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/fluid/trainer.py
Outdated
epoch_id(int): The current epoch ID. | ||
step_id(int): The current step ID. | ||
metrics(list): A list of fetched tensor. The order of this list is same | ||
as the :code:`train_func` returns. |
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.
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/fluid/trainer.py
Outdated
@@ -316,7 +426,14 @@ def test(self, reader, feed_order): | |||
self.train_func_outputs) | |||
|
|||
def save_params(self, param_path): | |||
# reference: save_persistables in io.py | |||
""" | |||
Save all parameters into :code:`param_path` |
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.
python/paddle/fluid/trainer.py
Outdated
Args: | ||
param_path(str): The path to save parameters | ||
|
||
Returns: |
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.
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.
@@ -58,6 +97,13 @@ def convert_reader_to_recordio_files( | |||
compressor=core.RecordIOWriter.Compressor.Snappy, | |||
max_num_records=1000, | |||
feed_order=None): | |||
""" | |||
convert a python reader to many recordio files. |
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.
没有参数列表
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.
这个函数和 convert_reader_to_recordio_file
基本一样。 我加个超链接吧。
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.
模块不在网站上 |
… feature/non_layer_api_doc
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.
Awesome!
No description provided.