You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using DAP, I encountered the following error:
File "/home/pdengad/protein/fastfold/fastfold/model/fastnn/ops.py", line 153, in forward
norm = torch.einsum('bsid,bsjd->bijd', M_mask_col, M_mask) + 1e-3
File "/home/pdengad/anaconda3/envs/fastfold/lib/python3.8/site-packages/torch/functional.py", line 360, in einsum
return _VF.einsum(equation, operands) # type: ignore[attr-defined]
RuntimeError: einsum(): the number of subscripts in the equation (4) does not match the number of dimensions (5) for operand 0 and no ellipsis was given
I am running multimer mode. In my case, M_mask has 5 dimensions: [1, batch_size, N_seq, N_res, 1]. The first dimension (1) is from line 235 in fastnn.msa.py: msa_mask = msa_mask.unsqueeze(0). The last dimension is from line 149 in fastnn.ops.py: M_mask = M_mask.unsqueeze(-1). I am wondering why there should be only 4 dimensions.
Here are the dimensions of some input features:
When using DAP, I encountered the following error:
I am running multimer mode. In my case, M_mask has 5 dimensions:
[1, batch_size, N_seq, N_res, 1]
. The first dimension (1) is fromline 235 in fastnn.msa.py: msa_mask = msa_mask.unsqueeze(0)
. The last dimension is fromline 149 in fastnn.ops.py: M_mask = M_mask.unsqueeze(-1)
. I am wondering why there should be only 4 dimensions.Here are the dimensions of some input features:
Thanks for any kind help.
The text was updated successfully, but these errors were encountered: