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

InfiniteSampler: don't pass dataset to super class #525

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

simonbyrne
Copy link
Contributor

@simonbyrne simonbyrne commented May 23, 2024

Modulus Pull Request

Description

The data_source argument to torch.utils.data.Sampler does nothing, and now triggers a warning if it is not None.

UserWarning: `data_source` argument is not used and will be removed in 2.2.0.You may still have custom implementation that utilizes it.

This change avoid passing it to the super class __init__() function.

Fixes #526

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is up to date with these changes.
  • An issue is linked to this pull request.

Dependencies

@mnabian
Copy link
Collaborator

mnabian commented May 24, 2024

/blossom-ci

Copy link
Collaborator

@mnabian mnabian left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for your contribution!

@mnabian mnabian requested a review from akshaysubr May 24, 2024 02:27
@simonbyrne simonbyrne force-pushed the sb/infinite-sampler-dataset-arg branch from 0e8a63c to ce67821 Compare May 30, 2024 23:02
@mnabian
Copy link
Collaborator

mnabian commented May 30, 2024

/blossom-ci

This suppresses a printed warning:
```
UserWarning: `data_source` argument is not used and will be removed in 2.2.0.You may still have custom implementation that utilizes it.
```
@simonbyrne simonbyrne force-pushed the sb/infinite-sampler-dataset-arg branch from ce67821 to 633d3e1 Compare June 3, 2024 20:00
@NickGeneva
Copy link
Collaborator

/blossom-ci

1 similar comment
@NickGeneva
Copy link
Collaborator

/blossom-ci

@NickGeneva NickGeneva added the 5 - Ready to Merge Testing and reviews complete, ready to merge label Jun 11, 2024
@NickGeneva
Copy link
Collaborator

/blossom-ci

@NickGeneva NickGeneva added the ! - Release PRs or Issues releating to a release label Jun 25, 2024
@mnabian
Copy link
Collaborator

mnabian commented Jun 26, 2024

/blossom-ci

@mnabian mnabian merged commit c8fa80d into NVIDIA:main Jun 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge ! - Release PRs or Issues releating to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛[BUG]: InfiniteSampler triggers pytorch warning
3 participants