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
\flowmatch\data\all_atom.py line 18: GROUP_IDX = torch.tensor(residue_constants.restype_atom14_to_rigid_group)
appears to create int32, which results in error 'group_maskRuntimeError: one_hot is only applicable to index tensor.'
I converted to to int64 explicitly at line 19 and that seemed to fix it: GROUP_IDX = GROUP_IDX.to(torch.int64)
There is probably a better fix...
The text was updated successfully, but these errors were encountered:
With this int32/int64 issue fixed I was able to through the entire ipynb without error.
WillHua127
changed the title
int32/int64 inconsistency in all_atom.py one hot
(READ IF ISSUES RAISE) int32/int64 inconsistency in all_atom.py one hot
Oct 8, 2024
\flowmatch\data\all_atom.py line 18:
GROUP_IDX = torch.tensor(residue_constants.restype_atom14_to_rigid_group)
appears to create int32, which results in error 'group_maskRuntimeError: one_hot is only applicable to index tensor.'
I converted to to int64 explicitly at line 19 and that seemed to fix it:
GROUP_IDX = GROUP_IDX.to(torch.int64)
There is probably a better fix...
The text was updated successfully, but these errors were encountered: