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
DataLoader() takes no arguments #13
Comments
Yes, you're right, this needs to be updated when we update to 1.1. Maybe we should pin the requirements in this repo to be v1.0? |
I had the same problem when running the scripts locally - downgrading from v1.1 to v1.0 fixed it. |
it work: from allennlp.data import PyTorchDataLoader train_loader = PyTorchDataLoader(train_data, batch_size=8, shuffle=True) |
This code really worked for me, Just replace every DataLoader with PyTorchDataloaderLoader, and its done! |
I encounter the following error when running the
quick_start/evaluate.py
demo evaluation on my machine.I believe this is due to generalizing the DataLoader. Possibly
PyTorchDataLoader
should be used instead. Similar code also exists inquick_start/train.py
andquick_start/predict.py
.The text was updated successfully, but these errors were encountered: