-
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
make places of DataLoader optional. #27432
make places of DataLoader optional. #27432
Conversation
Thanks for your contribution! |
python/paddle/fluid/reader.py
Outdated
be 1. Default None. | ||
places(list(Place)|tuple(Place)|optional): a list of Place, | ||
to put data onto, :attr:`places` should be None in dynamic | ||
graph mode. if :attr:`places` is None in static mode, default |
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 be None? maybe can be None
is better?
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, thanks!
python/paddle/fluid/reader.py
Outdated
be 1. Default None. | ||
places(list(Place)|tuple(Place)|optional): a list of Place, | ||
to put data onto, :attr:`places` should be None in dynamic | ||
graph mode. if :attr:`places` is None in static mode, default |
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.
in static mode
? not dynamic?
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, thanks!
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
… optional_place_in_dataloader
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
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
PR types
Function optimization
PR changes
APIs
Describe
make
places
argument inpaddle.io.DataLoader
optionalplace
not set(None), use_current_expected_place()
instead