Skip to content

Commit be4b9c7

Browse files
iamzainhudafacebook-github-bot
authored andcommitted
fix NDCG scatter_reduce_ arg (#2547)
Summary: Pull Request resolved: #2547 tsia https://pytorch.org/docs/stable/generated/torch.Tensor.scatter_reduce_.html#torch.Tensor.scatter_reduce_ Reviewed By: wilson100hong Differential Revision: D65696513 fbshipit-source-id: fb3f56f599959697ae9ab9bee21c6268ff8aa4ea
1 parent a97cf28 commit be4b9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchrec/metrics/ndcg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _get_ndcg_states(
253253
dim=-1,
254254
index=expanded_session_ids,
255255
src=adjusted_weights, # [num_tasks, batch_size]
256-
reduce="max",
256+
reduce="amax",
257257
)
258258
)
259259

0 commit comments

Comments
 (0)