Skip to content
Snippets Groups Projects
Commit c1ca0fcc authored by Léo Schneider's avatar Léo Schneider Committed by Schneider Leo
Browse files

main cutom on ISA data

parent b23b3e19
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,7 @@ class Model_Common_Transformer(nn.Module):
d_model=self.embedding_dim)
def forward(self, seq, charge):
print(seq.shape)
meta_ohe = torch.nn.functional.one_hot(charge - 1, self.charge_max).float()
seq_emb = torch.nn.functional.one_hot(seq, self.nb_aa).float()
emb = self.pos_embedding(self.emb(seq_emb))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment