Skip to content

Commit

Permalink
Merge pull request #251 from pmeier/pytorch-cpu
Browse files Browse the repository at this point in the history
increment loading index regardless of CUDA
  • Loading branch information
andrewilyas authored Feb 27, 2023
2 parents 580cc95 + e5e95fd commit e32280b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffcv/loader/epoch_iterator.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def run(self):
event = ch.cuda.Event()
event.record(ch.cuda.default_stream())
events[just_finished_slot] = event
b_ix += 1
b_ix += 1

except StopIteration:
self.output_queue.put(None)
Expand Down

0 comments on commit e32280b

Please sign in to comment.