Skip to content
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

Iterable Dataloader Improvements #91

Merged
merged 2 commits into from
Nov 20, 2023
Merged

Iterable Dataloader Improvements #91

merged 2 commits into from
Nov 20, 2023

Conversation

ibanesh
Copy link
Contributor

@ibanesh ibanesh commented Nov 19, 2023

  • Adding a current index meber to the IterableDataloader to keep track of the current iterating index.
  • Using this current index for building the instance.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 19, 2023
@@ -245,11 +244,12 @@ def __call__(self, system):
with open(
self.output / "instances.log", "a"
) if self.output else contextlib.nullcontext() as file:
idx = 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new cur_index variable, where is it initialized to 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ibanesh ibanesh merged commit ec759d1 into main Nov 20, 2023
3 checks passed
@ibanesh ibanesh deleted the dataloader-improvements branch November 20, 2023 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants