Skip to content

Commit

Permalink
fix doc of TextDecoder (openai#1526)
Browse files Browse the repository at this point in the history
Signed-off-by: haoshengqiang <[email protected]>
Co-authored-by: haoshengqiang <[email protected]>
  • Loading branch information
HSQ79815 and haoshengqiang authored Sep 18, 2023
1 parent 29b7df6 commit 21010ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whisper/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def forward(self, x: Tensor, xa: Tensor, kv_cache: Optional[dict] = None):
"""
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
Expand Down

0 comments on commit 21010ef

Please sign in to comment.