"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "a65d042c7389b42062971e67efb7cc01e5762e8d"
Commit 95d07675 authored by littletomatodonkey's avatar littletomatodonkey
Browse files

fix kldiv input

parent e45ff483
......@@ -79,7 +79,7 @@ class DMLLoss(nn.Layer):
log_out2 = paddle.log(out2)
loss = (F.kl_div(
log_out1, out2, reduction='batchmean') + F.kl_div(
log_out2, log_out1, reduction='batchmean')) / 2.0
log_out2, out1, reduction='batchmean')) / 2.0
return loss
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment