facebookresearch / DrQA

Reading Wikipedia to Answer Open-Domain Questions
Other
4.48k stars 898 forks source link

How could I run on pytorch1.2.0? #244

Closed mooe1011 closed 4 years ago

mooe1011 commented 4 years ago

image

UserWarning: maskedfill received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead.

I modify the DRQA/drqa/reader/vector.py and change ByteTensor(mask) to BoolTensor(mask),I run the interactive.py and it didn't give me the answer and it couldn't exit.