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

Fix io docs and expose ImageReadMode in torchvision.io #3812

Merged
merged 3 commits into from
May 11, 2021

Conversation

oke-aditya
Copy link
Contributor

@oke-aditya oke-aditya commented May 11, 2021

I think that ImageReadMode should be exposed to torchvision.io.ImageReadMode

Since we exposed the methods such as decode_jpeg, decode_png,
read_file, write_fle in __init__ I exposed docs for them.

I think if they are private methods then probably they shouldn't have been exposed in __init__ and also be named with _.

Also small nits to docs.

Let me know if changes are need !

cc @datumbox

@oke-aditya oke-aditya changed the title Fix io imports and expose methods Fix io docs and expose ImageReadMode in torchvision.io May 11, 2021
@oke-aditya oke-aditya changed the title Fix io docs and expose ImageReadMode in torchvision.io Fix io docs and expose ImageReadMode in torchvision.io May 11, 2021
Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the much needed changes!

@datumbox datumbox merged commit 6374cff into pytorch:master May 11, 2021
@oke-aditya oke-aditya deleted the fix_imrdmod branch May 11, 2021 15:25
facebook-github-bot pushed a commit that referenced this pull request May 19, 2021
…3812)

Summary:
* Fix io imports and expose methods

* fix fmt

Reviewed By: cpuhrsch

Differential Revision: D28538767

fbshipit-source-id: 7e7d11f0267dfcf3e30196256951e732925902b1

Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
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.

4 participants