Hi !
So I tried this;
loss2 = 1-(my_loss(torch.stack(embedding_prime),torch.stack(embedding_target)))
and still     loss = nn.CosineSimilarity()
but the result is still so innacurate… As a previous test we used the NLLLoss() between the entry phrase and the generated phrase so we obtained the same phrases with a 95% accuracy. but what we actually need is to obtain a sentence with words the closer possible .
Do you have any idea what I may be missing ?
Thanks.