Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions whisper/decoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,9 @@ def _get_audio_features(self, mel: Tensor):
audio_features = self.model.encoder(mel)

if audio_features.dtype != (
torch.float16 if self.options.fp16 else torch.float32
torch.float16 if self.options.fp16 else torch.float32
):
return TypeError(
raise TypeError(
f"audio_features has an incorrect dtype: {audio_features.dtype}"
)

Expand Down