mirror of
https://github.com/openai/whisper.git
synced 2025-03-30 14:28:27 +00:00
Merge 089f08945b4934eb6a453c61492fe2d7835e115a into 517a43ecd132a2089d85f4ebc044728a71d49f6e
This commit is contained in:
commit
686aca92f8
@ -730,7 +730,8 @@ class DecodingTask:
|
||||
)
|
||||
]
|
||||
|
||||
# repeat text tensors by the group size, for beam search or best-of-n sampling
|
||||
# repeat the audio & text tensors by the group size, for beam search or best-of-n sampling
|
||||
audio_features = audio_features.repeat_interleave(self.n_group, dim=0)
|
||||
tokens = tokens.repeat_interleave(self.n_group, dim=0).to(audio_features.device)
|
||||
|
||||
# call the main sampling loop
|
||||
|
Loading…
x
Reference in New Issue
Block a user