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

make places of DataLoader optional. #27432

Merged

Conversation

heavengate
Copy link
Contributor

@heavengate heavengate commented Sep 21, 2020

PR types

Function optimization

PR changes

APIs

Describe

make places argument in paddle.io.DataLoader optional

  • if place not set(None), use _current_expected_place() instead

dataloder

屏幕快照 2020-09-24 下午5 01 54
屏幕快照 2020-09-24 下午5 02 07
屏幕快照 2020-09-24 下午5 02 18

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@heavengate heavengate changed the title make places of DataLoader optional. test=develop make places of DataLoader optional. Sep 21, 2020
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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks!

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
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks!

chenwhql
chenwhql previously approved these changes Sep 22, 2020
saxon-zh
saxon-zh previously approved these changes Sep 22, 2020
Copy link

@saxon-zh saxon-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@heavengate heavengate dismissed stale reviews from saxon-zh and chenwhql via b70657a September 24, 2020 03:47
Copy link
Contributor

@chenwhql chenwhql left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@saxon-zh saxon-zh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@heavengate heavengate merged commit 8473ee9 into PaddlePaddle:develop Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants