Torchtext BucketIterator AttributeError: 'generator' object has no attribute 'size'

后端 未结 0 1443
一整个雨季
一整个雨季 2020-11-27 02:52

I\'m trying to use torchtext to handle my data for a PyTorch LSTM. I can\'t get the BucketIterator to work, and I can\'t figure out how to solve this problem.

My code

相关标签:
回答
  • 消灭零回复
提交回复
热议问题