Skip to content
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

修改 COPY-FROM No.12 io #55221

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions python/paddle/fluid/reader.py
RedContritio marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,10 @@ def from_generator(
Returns:
loader (DataLoader): the created DataLoader object.

Examples 1:
Examples:

.. code-block:: python
:name static-data-loader-example-1

'''
Example in static graph mode
Expand Down Expand Up @@ -344,10 +345,8 @@ def set_data_source(loader, places):
else:
train_non_iterable(exe, prog, loss, loader)


Examples 2:

.. code-block:: python
:name static-data-loader-example-2

'''
Example in dynamic graph mode.
Expand Down
1 change: 1 addition & 0 deletions python/paddle/io/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ class DataLoader:
Examples:

.. code-block:: python
:name data-loader-example
RedContritio marked this conversation as resolved.
Show resolved Hide resolved

import numpy as np

Expand Down