Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#4557 from tink2123/cherry-pick
Browse files Browse the repository at this point in the history
[cherry-pick] fix attn score
  • Loading branch information
LDOUBLEV authored Nov 5, 2021
2 parents 626704d + 576644b commit bb6d66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppocr/modeling/heads/rec_att_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def forward(self, inputs, targets=None, batch_max_length=25):
probs_step, axis=1)], axis=1)
next_input = probs_step.argmax(axis=1)
targets = next_input

probs = paddle.nn.functional.softmax(probs, axis=2)
return probs


Expand Down

0 comments on commit bb6d66a

Please sign in to comment.