Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cdluminate committed Dec 6, 2023
1 parent bfe932d commit cf8adad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robrank/losses/infonce.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
t=0.2 R@1 = 88.4
'''

def infonce(repA: th.Tensor, repB: th.Tensor, *, metric:str='C', t:float = 0.2) -> th.Tensor:
def infonce(repA: th.Tensor, repB: th.Tensor, *, metric:str='C', t:float = 0.0) -> th.Tensor:
# make sure shape is correct
repA, repB = th.flatten(repA, 1), th.flatten(repB, 1)
assert metric == 'C'
Expand Down

0 comments on commit cf8adad

Please sign in to comment.