-
Notifications
You must be signed in to change notification settings - Fork 811
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
[Breaking] Pytorch 0.4 release compatibility fixes #299
Conversation
Please fix the docstrings too. |
It would be better if we can also raise an error/warning when the flag is set, so users can know that they need to update this. |
I agree with the warning, but the flag isn't used only for I updated the docstring and made the version check a bit nicer, as well as added it to iterator. |
I also added weak support for |
how about get rid of all the device arguments in torchtext? user could change the device using one-liner. input, target = input.to(device), target.to(device) |
I'm open to either of these solutions, and I'm sorry I haven't been on top of 0.4 compatibility; let's get something merged soon so we have a working release |
We could dump the responsibility onto the user (I prefer this as it would make for some cleaner code), but that would kinda ruin backwards compatibility. |
I'm OK with 0.4 support being a breaking release |
I went on a deleting spree:
Still waiting to see if this passes tests as my server is acting up. |
@jekbradbury the current build passes everything. When you get some time, please do a sanity check on the changes, but I don't see any obvious issues. |
#295