alibaba-edu / simple-effective-text-matching-pytorch

A pytorch implementation of the ACL2019 paper "Simple and Effective Text Matching with Richer Alignment Features".
Apache License 2.0
304 stars 54 forks source link

How can I solve the problem "RuntimeError: Mask tensor can take 0 and 1 values only at..." with Pytorch 1.2.0 #5

Closed muguruzawang closed 2 years ago

muguruzawang commented 3 years ago

Excuse me, I encounter the problem that "RuntimeError: Mask tensor can take 0 and 1 values only at /pytorch/aten/src/TH/generic/THTensorEvenMoreMath.cpp:580" when training the model with Pytorch 1.2.0.

Do you have any solution to this problem? Thanks.

muguruzawang commented 3 years ago

OK,I solved it.

hitvoice commented 3 years ago

Sorry for the late reply. Glad to see you solved it. :)

bott1eee commented 2 years ago

OK,I solved it.

Can you please tell me how you solved this problem? thanks!!!

hitvoice commented 2 years ago

@bott1eee Switching to pytorch 1.0.1 will solve the problem. I'll update the latest version compatible implementation when I get some time.

hitvoice commented 2 years ago

@bott1eee fix in the master branch (05d572e30801b235e989c78c95dd24d5f5d35f74)