-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix infinite loop in _on_epoch_end #326
Labels
bug
Something isn't working
Comments
StevenSong
added a commit
that referenced
this issue
Jun 18, 2020
lucidtronix
pushed a commit
that referenced
this issue
Jan 13, 2023
lucidtronix
pushed a commit
that referenced
this issue
Jan 13, 2023
lucidtronix
pushed a commit
that referenced
this issue
Jan 13, 2023
lucidtronix
pushed a commit
that referenced
this issue
Jan 13, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is to address the bug found in #323
What
_on_epoch_end
has a bug in the loop that checks the stats_q. it gets stuck ifnum_workers == 0
. this happens whennum_workers
is set to 0 or 1 as an argument (in the case ofnum_workers == 1
, validation generator getsnum_workers // 2 --> 1 // 2 == 0
).code segment: https://github.com/broadinstitute/ml/blob/e3540e1eff2fc45301255c1e89b87c8bb5d18405/ml4cvd/tensor_generators.py#L429-L430
Why
code gets stuck during training/validation
How
set
self.num_workers = 1
also a good opportunity to address #260
Acceptance Criteria
code does not get stuck
The text was updated successfully, but these errors were encountered: