mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
Update zeros' comment in rec_abinet_head.py (#11374)
Bug fixes | One of code comments | maybe here it's B,N,C
This commit is contained in:
parent
25ffa816f7
commit
1f6712c370
@ -156,7 +156,7 @@ class PositionAttention(nn.Layer):
|
||||
# calculate query vector
|
||||
# TODO q=f(q,k)
|
||||
zeros = paddle.zeros(
|
||||
(B, self.max_length, C), dtype=x.dtype) # (T, N, C)
|
||||
(B, self.max_length, C), dtype=x.dtype) # (B, N, C)
|
||||
q = self.pos_encoder(zeros) # (B, N, C)
|
||||
q = self.project(q) # (B, N, C)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user