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:
Yesir 2023-12-27 19:45:24 +08:00 committed by GitHub
parent 25ffa816f7
commit 1f6712c370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)