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
79e83a8d
"docs/source/en/tutorials/basic_training.md" did not exist on "f96b7606582bd6ca1a779d7c346083f578352ac7"
Commit
79e83a8d
authored
Jun 22, 2021
by
MissPenguin
Browse files
refine
parent
97a66874
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ppocr/modeling/heads/rec_ctc_head.py
ppocr/modeling/heads/rec_ctc_head.py
+6
-1
No files found.
ppocr/modeling/heads/rec_ctc_head.py
View file @
79e83a8d
...
...
@@ -45,7 +45,12 @@ class CTCHead(nn.Layer):
self
.
out_channels
=
out_channels
def
forward
(
self
,
x
,
targets
=
None
):
predicts
=
self
.
fc
(
x
)
if
self
.
mid_channels
is
None
:
predicts
=
self
.
fc
(
x
)
else
:
predicts
=
self
.
fc1
(
x
)
predicts
=
self
.
fc2
(
predicts
)
if
not
self
.
training
:
predicts
=
F
.
softmax
(
predicts
,
axis
=
2
)
return
predicts
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