-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add pathlib.Path support for image IO utils #8314
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8314
Note: Links to docs will display an error until the docs builds have been completed. ❌ 16 New Failures, 2 Pending, 18 Unrelated FailuresAs of commit de684f0 with merge base 2bababf (): NEW FAILURES - The following jobs have failed:
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. |
@@ -42,14 +42,14 @@ def read_file(path: str) -> torch.Tensor: | |||
with one dimension. | |||
|
|||
Args: | |||
path (str): the path to the file to be read | |||
path (str or ``pathlib.Path``): the path to the file to be read |
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.
Note that we can't change the type signatures because of torchscript.
Reviewed By: vmoens Differential Revision: D55062764 fbshipit-source-id: d0a7c100088ce6990a557c857edfda9f8c9284ff
Towards #8120
Needs #8313 to be merged first