Skip to content

Commit

Permalink
~
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravchak committed May 1, 2024
1 parent 33d4e8e commit 49c050f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/two_tower_base_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def compute_training_loss(
position: torch.Tensor, # [B]
labels: torch.Tensor # [B, T]
) -> torch.Tensor:
# Compute the scores for every pair of user and item
# Compute the scores for every pair of user and item
scores = torch.matmul(user_embedding, item_embeddings.t()) # [B, B]

# You should either try to handle the popularity bias
Expand Down

0 comments on commit 49c050f

Please sign in to comment.