-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lack of reset when
iter()
is called on the DALI framework itera…
…tor (#4048) - the DALI framework iterator when `iter()` is called checks if any data has been consumed yet. If it hasn't it doesn't reset to prevent improper operation when DALI FW iterator prefetches the first batch after creation, and invocation of something like `enumerate(iterator)`, would reset the iterator and extend the length of the first epoch (prefetched data in the FW iterator would be added to the freshly reset iterator). The flag that is set when any data has been consumed was set only in the `next()` method and not `__next__()`. This PR fixes this problem and adjusts the test Signed-off-by: Janusz Lisiecki <[email protected]>
- Loading branch information
Showing
4 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters