Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
95d07675
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "a65d042c7389b42062971e67efb7cc01e5762e8d"
Commit
95d07675
authored
Jun 09, 2021
by
littletomatodonkey
Browse files
fix kldiv input
parent
e45ff483
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppocr/losses/basic_loss.py
ppocr/losses/basic_loss.py
+1
-1
No files found.
ppocr/losses/basic_loss.py
View file @
95d07675
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment