mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-12-28 07:28:55 +00:00
fix attn score
This commit is contained in:
parent
5aa14c5f11
commit
2ce4d9f8b5
@ -75,7 +75,7 @@ class AttentionHead(nn.Layer):
|
||||
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
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user