Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
cc81d4b5
Commit
cc81d4b5
authored
Nov 01, 2021
by
RangiLyu
Committed by
Wenwei Zhang
Nov 10, 2021
Browse files
[Enhance] prevent deadlock in
parent
8afb7c29
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
mmcv/runner/iter_based_runner.py
mmcv/runner/iter_based_runner.py
+1
-0
No files found.
mmcv/runner/iter_based_runner.py
View file @
cc81d4b5
...
...
@@ -34,6 +34,7 @@ class IterLoader:
self
.
_epoch
+=
1
if
hasattr
(
self
.
_dataloader
.
sampler
,
'set_epoch'
):
self
.
_dataloader
.
sampler
.
set_epoch
(
self
.
_epoch
)
time
.
sleep
(
2
)
# Prevent possible deadlock during epoch transition
self
.
iter_loader
=
iter
(
self
.
_dataloader
)
data
=
next
(
self
.
iter_loader
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment