Skip to content

Commit

Permalink
add custom op & kd loss
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxudong committed Aug 21, 2024
1 parent 645b0dd commit 262e2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easy_rec/python/loss/listwise_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def listwise_rank_loss(labels,
"""
loss_name = name if name else 'listwise_rank_loss'
logging.info('[{}] temperature: {}'.format(loss_name, temperature))

labels = tf.to_float(labels)
if temperature != 1.0:
logits /= temperature
if label_is_logits:
Expand Down

0 comments on commit 262e2ca

Please sign in to comment.