Update decoder.py

This commit is contained in:
Fangjun Kuang 2021-12-22 23:49:31 +08:00 committed by GitHub
parent c24b610389
commit 834114f1c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,8 +76,8 @@ class Decoder(nn.Module):
y:
A 2-D tensor of shape (N, U) with blank prepended.
need_pad:
True to left padding the input. Should be True during training.
False to not pad the input. Used only during inference.
True to left pad the input. Should be True during training.
False to not pad the input. Should be False during inference.
Returns:
Return a tensor of shape (N, U, embedding_dim).
"""