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
Great work, simple and efficient! However, I have some doubts about the implementation of the NTXentLoss function. Why is the shape of logits 1024, 1023, while the shape of the labels is 1024? After that, why is a torch.nn.CrossEntropyLoss used? Why is this done this way? Isn't the general implementation simply -log(loss_positive / loss_negative)?
The text was updated successfully, but these errors were encountered:
Great work, simple and efficient! However, I have some doubts about the implementation of the NTXentLoss function. Why is the shape of logits 1024, 1023, while the shape of the labels is 1024? After that, why is a torch.nn.CrossEntropyLoss used? Why is this done this way? Isn't the general implementation simply -log(loss_positive / loss_negative)?
The text was updated successfully, but these errors were encountered: