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

Type annotations for util.data. #18963

Closed
wants to merge 4 commits into from
Closed

Conversation

malmaud
Copy link
Contributor

@malmaud malmaud commented Apr 5, 2019

I haven't had a chance to rigorously try these out yet so don't merge yet.
Closes #18725.

@ssnl
Copy link
Collaborator

ssnl commented Apr 5, 2019

Thanks Jon :).

@malmaud malmaud changed the title WIP: Type annotations for util.data. Type annotations for util.data. Apr 6, 2019
@malmaud
Copy link
Contributor Author

malmaud commented Apr 6, 2019

OK, this seems to work now. Unfortunately I couldn't figure out a way to get the results returned by a dataloader to be any more specific than Any, given current limitations of the Python typing system.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in 0565141.

zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
Summary:
I haven't had a chance to rigorously try these out yet so don't merge yet.
Closes pytorch#18725.
Pull Request resolved: pytorch#18963

Differential Revision: D14832897

Pulled By: ezyang

fbshipit-source-id: 4780e7a34126bc66ddbfd9d808dfc9e0edd77e68
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.

Type annotations for util.data missing
4 participants