Skip to content

Make torchvision.io.read_image{,_async} and torchvision.io.read_async allow subsequent opening of the file for reading#1495

Open
hiyuh wants to merge 2 commits intodotnet:mainfrom
hacarus:fix-stream-open-read
Open

Make torchvision.io.read_image{,_async} and torchvision.io.read_async allow subsequent opening of the file for reading#1495
hiyuh wants to merge 2 commits intodotnet:mainfrom
hacarus:fix-stream-open-read

Conversation

@hiyuh
Copy link
Contributor

@hiyuh hiyuh commented Sep 9, 2025

Addressed to dotnet#1494.

* Update src/TorchVision/IO/Image.cs.
  + Fix torchvision.io.read_image{,_async}.
    - Allow subsequent opening of the file for reading.
* Update src/TorchVision/File.cs.
  + Fix torchvision.io.read_file_async.
    - Allow subsequent opening of the file for reading.
@alinpahontu2912
Copy link
Member

Hey @hiyuh, can you update your branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants