mirror of
https://github.com/kexinhuang12345/MolTrans.git
synced 2026-04-03 00:09:03 -06:00
About computing pairwise interaction #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tigerrr07 on 6/4/2023
Hi Kexin, I have the follwing questions.
torch.matmul(d_encoded_layers , p_encoded_layers.transpose(-1, -2))directly instead of the following code?47ac16b8c1/models.py (L86-L100)Besides, the above code also confuses me a lot for the view operation in line 96, I tested it with a simple example, and it did not calculate the dot product between sub-structural pairs.
output:
The final
i_vlooks pointless, because the representation for drug sub1 is all zero. I think view operation changes the arangement of data. Maybe the following code is more correct?output:
2.I think padding tokens should be filtered out of the interaction map
Ibefore being fed into the CNN. I do this by passing the d_mask and p_mask:Sorry to bother you.