Update egs/librispeech/ASR/conformer_lm/conformer.py

Co-authored-by: Fangjun Kuang <csukuangfj@gmail.com>
This commit is contained in:
Daniel Povey 2021-09-27 12:19:01 +08:00 committed by GitHub
parent 0cfa8c80e0
commit 8e650a5841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ class MaskedLmConformer(nn.Module):
Returns: Returns:
Returns (memory, pos_emb), where: Returns (memory, pos_emb), where:
`memory` is a Tensor containing the encoded data; it is of shape (N, T, C) `memory` is a Tensor containing the encoded data; it is of shape (T, N, C)
where C is the embedding_dim. where C is the embedding_dim.
`pos_emb` is a Tensor containing the relative positional encoding, of `pos_emb` is a Tensor containing the relative positional encoding, of
shape (1, 2*T-1, C) shape (1, 2*T-1, C)