Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Sep 12, 2020 · 5 comments

Comments

@muguruzawang
Copy link

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
Copy link
Author

OK,I solved it.

@hitvoice
Copy link
Collaborator

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

@bott1eee
Copy link

OK,I solved it.

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

@hitvoice
Copy link
Collaborator

@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 hitvoice reopened this Sep 30, 2021
@hitvoice
Copy link
Collaborator

@bott1eee fix in the master branch (05d572e)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants