remember to use torchtext==0.2.3
Closed this issue · 0 comments
wanghm92 commented
I tried running the preprocessing script after installing the latest torchtext, which seems to be incompatible by throwing this error:
***/torchtext/data/field.py", line 118, in Field torch.float32: float, AttributeError: 'module' object has no attribute 'float32'
Solved by referring to this post:
https://github.com/OpenNMT/OpenNMT-py/issues/900#issuecomment-437919442
Hope it helps