-
Notifications
You must be signed in to change notification settings - Fork 161
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
fix deprecation warning for datapipes #324
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add the "earliest removal version/date" here too:
pytorch/pytorch#74685 (comment)
Aside from that, thanks for doing this!
Cross posting pytorch/pytorch#74685 (comment)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our next release is 0.4 instead of 0.5. Otherwise, it looks good. Thanks!
The other PR should be landed soon, so this can be merged next week |
We get a bunch of "unclosed file" warnings for Python >= 3.8. They are valid, but unrelated to this PR. See pytorch/vision#5801. |
Took a quick look on the warning. It seems the warning comes from https://github.com/pytorch/vision/blob/c399c3f4957d997691561b51b0eca182ec7c3cac/torchvision/datasets/sbu.py#L51 Curious about when does this warning start to pop up? Based on git blame, the changes were made 3 years ago. To eliminate it, you may want to explicitly close the opened files in |
It seems we have mypy Error from |
@NivekT has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Nope. You linked an old dataset that is not tested in your CI. SBU with datapipes is not even landed yet (pytorch/vision#5683), so not sure where you got that from. In any case, this is not linked to a specifc dataset as far as I can tell. See pytorch/vision#5801 for more failures that popped up when we also tested Python >= 3.8 in our CI. Let's discuss there. |
Sister PR to pytorch/pytorch#74685. Fixes #322. CI will fail until the change is merged upstream.