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
0507402a
"vscode:/vscode.git/clone" did not exist on "688031c592a08832387761971f1e6ca504a5900b"
Commit
0507402a
authored
Feb 19, 2021
by
WenmuZhou
Browse files
fix export bug
parent
33f302e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ppocr/modeling/heads/rec_att_head.py
ppocr/modeling/heads/rec_att_head.py
+3
-3
No files found.
ppocr/modeling/heads/rec_att_head.py
View file @
0507402a
...
@@ -57,6 +57,9 @@ class AttentionHead(nn.Layer):
...
@@ -57,6 +57,9 @@ class AttentionHead(nn.Layer):
else
:
else
:
targets
=
paddle
.
zeros
(
shape
=
[
batch_size
],
dtype
=
"int32"
)
targets
=
paddle
.
zeros
(
shape
=
[
batch_size
],
dtype
=
"int32"
)
probs
=
None
probs
=
None
char_onehots
=
None
outputs
=
None
alpha
=
None
for
i
in
range
(
num_steps
):
for
i
in
range
(
num_steps
):
char_onehots
=
self
.
_char_to_onehot
(
char_onehots
=
self
.
_char_to_onehot
(
...
@@ -146,9 +149,6 @@ class AttentionLSTM(nn.Layer):
...
@@ -146,9 +149,6 @@ class AttentionLSTM(nn.Layer):
else
:
else
:
targets
=
paddle
.
zeros
(
shape
=
[
batch_size
],
dtype
=
"int32"
)
targets
=
paddle
.
zeros
(
shape
=
[
batch_size
],
dtype
=
"int32"
)
probs
=
None
probs
=
None
char_onehots
=
None
outputs
=
None
alpha
=
None
for
i
in
range
(
num_steps
):
for
i
in
range
(
num_steps
):
char_onehots
=
self
.
_char_to_onehot
(
char_onehots
=
self
.
_char_to_onehot
(
...
...
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