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

[Feature] Support persistent worker #426

Merged
merged 2 commits into from
Jul 12, 2021

Conversation

ckkelvinchan
Copy link
Member

Support persistent worker for PyTorch >= 1.7

@codecov
Copy link

codecov bot commented Jul 12, 2021

Codecov Report

Merging #426 (03fc2aa) into master (efcc174) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #426      +/-   ##
==========================================
+ Coverage   80.66%   80.68%   +0.01%     
==========================================
  Files         188      188              
  Lines       10107    10106       -1     
  Branches     1485     1485              
==========================================
+ Hits         8153     8154       +1     
+ Misses       1740     1739       -1     
+ Partials      214      213       -1     
Flag Coverage Δ
unittests 80.65% <66.66%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmedit/datasets/builder.py 92.85% <100.00%> (+3.38%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update efcc174...03fc2aa. Read the comment docs.

drop_last=drop_last,
**kwargs)
if torch.__version__ >= '1.7.0':
data_loader = DataLoader(
Copy link
Contributor

Choose a reason for hiding this comment

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

How about tweak the kwargs dict instead of repeating these long DataLoader lines?

@innerlee innerlee merged commit d592496 into open-mmlab:master Jul 12, 2021
@ckkelvinchan ckkelvinchan mentioned this pull request Jul 12, 2021
@ckkelvinchan ckkelvinchan deleted the persistent branch July 12, 2021 05:01
Yshuo-Li pushed a commit to Yshuo-Li/mmediting that referenced this pull request Jul 15, 2022
* Support persistent worker

* Pass persistent_workers to kwargs
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