Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/data/1416
Note: Links to docs will display an error until the docs builds have been completed. ❌ 13 New FailuresAs of commit b771bea with merge base 62092dd ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| self._batch_idx = 0 | ||
|
|
||
| def next(self) -> T: | ||
| while self._batch_idx >= len(self._batch): |
There was a problem hiding this comment.
This should be if instead of while ? i.e. if the _batch_idx overshoots the current _batch, get a new _batch and reset _batch_idx to 0.
EDIT: while also works though, in case the next batch if of size 0 and we want to skip that too.
There was a problem hiding this comment.
@divyanshk yes i was worried about next batch of size 0 case, although I'm assuming that's unlikely but it's an edge case none the less
|
Test failure seems unrelated, not sure what caused this but it seems weird to rely on a particular implementation of the RNG |
Required for #1415
Changes