Machine-Learning-Collection icon indicating copy to clipboard operation
Machine-Learning-Collection copied to clipboard

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

Open VinACE opened this issue 3 years ago • 0 comments

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

VinACE avatar Apr 23 '21 07:04 VinACE