-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hi,
I want to do some end-to-end training using your sw_cuda modual. But it seems that I don't how it works. My code:
from deepblast.sw_cuda import SmithWatermanDecoder
device = torch.device('cuda:0')
ddp = SmithWatermanDecoder(operator='softmax')
match = torch.randn(100, 120, 108).requires_grad_(True)
gap = torch.randn(100, 120, 108).requires_grad_(True)
aln = ddp.decode(match.to(device), gap.to(device))
In my understanding, aln
should return the probability of alignment. However, the aln
tensor always get 0
in the first row and column, which means aln
don't return what I want. So is my code wrong, or I just misunderstand the output of ddp.decode
?
Metadata
Metadata
Assignees
Labels
No labels