mirror of
https://github.com/zebrajr/whisper.git
synced 2025-12-06 00:19:50 +01:00
fix doc of TextDecoder (#1526)
Signed-off-by: haoshengqiang <haoshengqiang@xiaohongshu.com> Co-authored-by: haoshengqiang <haoshengqiang@xiaohongshu.com>
This commit is contained in:
parent
29b7df6231
commit
21010ef454
|
|
@ -197,7 +197,7 @@ class TextDecoder(nn.Module):
|
|||
"""
|
||||
x : torch.LongTensor, shape = (batch_size, <= n_ctx)
|
||||
the text tokens
|
||||
xa : torch.Tensor, shape = (batch_size, n_mels, n_audio_ctx)
|
||||
xa : torch.Tensor, shape = (batch_size, n_audio_ctx, n_audio_state)
|
||||
the encoded audio features to be attended on
|
||||
"""
|
||||
offset = next(iter(kv_cache.values())).shape[1] if kv_cache else 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user