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

mat1 and mat2 must have the same dtype #140

Open
QUEST2179 opened this issue Sep 16, 2023 · 1 comment
Open

mat1 and mat2 must have the same dtype #140

QUEST2179 opened this issue Sep 16, 2023 · 1 comment

Comments

@QUEST2179
Copy link

Follow Aligning proteins wiki

Traceback (most recent call last):
File "C:\Users\work\project\structure\deepblast-master\testDeepBlast.py", line 19, in
pred_alignment = model.align(x, y)
File "C:\Users\work\project\structure\deepblast-master\deepblast\trainer.py", line 84, in align
decoded, _ = next(gen)
File "C:\Users\work\project\structure\deepblast-master\deepblast\alignment.py", line 160, in traceback
zx, gx = self.blosum_factor(hx)
File "C:\Users\work\project\structure\deepblast-master\deepblast\alignment.py", line 95, in blosum_factor
zx = self.match_embedding(hx)
File "C:\Users\miniconda3\envs\torch10\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\work\project\structure\deepblast-master\deepblast\embedding.py", line 157, in forward
h = self.embed(x)
File "C:\Users\miniconda3\envs\torch10\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "C:\Users\miniconda3\envs\torch10\lib\site-packages\torch\nn\modules\linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 must have the same dtype

@mortonjt
Copy link
Collaborator

mortonjt commented Sep 16, 2023 via email

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

2 participants