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

add persistent_workers #34017

Merged

Conversation

heavengate
Copy link
Contributor

@heavengate heavengate commented Jul 7, 2021

PR types

New features

PR changes

APIs

Describe

Add persistent_workers argument for DataLoader

  • when persistent_workers=True,in persistent_workers, worker processes will be resued among epoches, which mean DataLoader only start workers in DataLoader __init__ and stop workers when program end, workers remain alive cross epoches

@heavengate heavengate force-pushed the dataloader_persistent_worker branch from b68a088 to 88e575e Compare July 7, 2021 14:03
@heavengate heavengate merged commit 76710e5 into PaddlePaddle:develop Jul 29, 2021
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.

2 participants