Skip to content

AttributeError: 'Batch' object has no attribute 'src' #43

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

Open
VinACE opened this issue Apr 23, 2021 · 0 comments
Open

AttributeError: 'Batch' object has no attribute 'src' #43

VinACE opened this issue Apr 23, 2021 · 0 comments

Comments

@VinACE
Copy link

VinACE commented Apr 23, 2021

https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py

inp_data = batch.src.to(device)

AttributeError: 'Batch' object has no attribute 'src'

I am using

]$ conda list | grep torchtext
torchtext 0.9.1 pypi_0 pypi

How can i fix this issue in torchtext 0.9.1

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

No branches or pull requests

1 participant