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

CUDA problem #10

Open
JessedeDoes opened this issue May 6, 2020 · 0 comments
Open

CUDA problem #10

JessedeDoes opened this issue May 6, 2020 · 0 comments

Comments

@JessedeDoes
Copy link

I get this error:

Traceback (most recent call last):
File "test.py", line 4, in
plot_example(True, reference, translation)
File "/home/jesse/.local/lib/python3.7/site-packages/moverscore_v2.py", line 194, in plot_example
distance_matrix = masks * distance_matrix
RuntimeError: expected backend CUDA and dtype Float but got backend CUDA and dtype Long

(The line in question is
distance_matrix = masks * distance_matrix,

when i change it to distance_matrix = masks.double() * distance_matrix.double(),

the problem seems to disappear)

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

1 participant