-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Turn warnings in prototype datasets tests into errors #5540
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
Turn warnings in prototype datasets tests into errors #5540
Conversation
💊 CI failures summary and remediationsAs of commit 1718a82 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Job | Step | Action |
---|---|---|
Build torchvision C++ distribution and test | 🔁 rerun |
🚧 3 ongoing upstream failures:
These were probably caused by upstream breakages that are not fixed yet.
- binary_linux_conda_py3.10_cu115 since Mar 21 (fbc8ea4)
- binary_linux_conda_py3.7_cu115 since Mar 21 (fbc8ea4)
- binary_linux_conda_py3.8_cu115 since Mar 21 (fbc8ea4)
This comment was automatically generated by Dr. CI (expand for details).
Please report bugs/suggestions to the (internal) Dr. CI Users group.
Conflicts: torchvision/prototype/datasets/_builtin/imagenet.py
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.
LGTM, thanks.
Though you are doing quite a few changes more than what you describe. Might be worth disclosing this on the PR description.
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.
Thanks @pmeier ,
This reverts commit 2bf3aa6.
If this comes back to bite us (see #5540 (comment)): |
Summary: * fix PCAM prototype dataset * update Zip and Tar archive loader datapipes * only fail on warnings from the pytorch ecosystem * Revert "only fail on warnings from the pytorch ecosystem" This reverts commit 2bf3aa6. (Note: this ignores all push blocking failures!) Reviewed By: datumbox Differential Revision: D35216776 fbshipit-source-id: 2cf636ea5c037da771ab2c46ed6b632b4780d477
I noticed a couple of warnings in the prototype datasets test suite:
From top to bottom this PR does the following to fix them:
(Zip|Tar)ArchiveReader
with(Zip|Tar)ArchiveLoader
. This is related to the first two warnings although it is not immediately clear. See Warnings for deprecated datapipes are insufficient data#322 for details.scipy.io.savemat
that we have no control overAdditionally, this PR enforces that in the future datasets test are not allowed to raise any warnings.