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

Remove deprecated path parameter to VideoReader and made src mandatory #8125

Merged
merged 8 commits into from
Nov 20, 2023

Conversation

NicolasHug
Copy link
Member

plus some minimal input check tests.

Copy link

pytorch-bot bot commented Nov 20, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8125

Note: Links to docs will display an error until the docs builds have been completed.

✅ You can merge normally! (32 Unrelated Failures)

As of commit 13eab0d with merge base 127e8a7 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

src = path
warnings.warn("path is deprecated and will be removed in 0.17. Please use src instead")
if isinstance(src, str) and not src:
raise ValueError("src cannot be empty")
Copy link
Member Author

Choose a reason for hiding this comment

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

This isn't strictly needed, we could just rely on the error from the backend. This line just makes that error consistent across backends and thus is easier to test. If we remove this line, I'll just remove the test.

Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

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

LGTM

test/test_videoapi.py Outdated Show resolved Hide resolved
@NicolasHug NicolasHug merged commit 893b4ab into pytorch:main Nov 20, 2023
1 check passed
@NicolasHug NicolasHug deleted the elajnaelfjnaelfjn branch November 20, 2023 14:54
facebook-github-bot pushed a commit that referenced this pull request Jan 15, 2024
… mandatory (#8125)

Summary: Co-authored-by: vfdev <vfdev.5@gmail.com>

Reviewed By: vmoens

Differential Revision: D52538998

fbshipit-source-id: a94116a744de3180bf9eea3fbfc02202a681cdd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants