MCPcopy Index your code
hub / github.com/HiLab-git/SSL4MIS / softmax_kl_loss

Function softmax_kl_loss

code/utils/losses.py:85–104  ·  view source on GitHub ↗

Takes softmax on both sides and returns KL divergence Note: - Returns the sum over all examples. Divide by the batch size afterwards if you want the mean. - Sends gradients to inputs but not the targets.

(input_logits, target_logits, sigmoid=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected