Unverified Commit ae871ca9 authored by Andy Lo's avatar Andy Lo Committed by GitHub
Browse files

Minor cleanup for Voxtral (#34247)


Signed-off-by: default avatarAndy Lo <andy@mistral.ai>
parent a2443de5
......@@ -792,7 +792,9 @@ class VoxtralEncoderModel(nn.Module):
audio_waveforms: torch.Tensor,
) -> torch.Tensor:
input_dtype = audio_waveforms.dtype
window = torch.hann_window(self.config.window_size).to(audio_waveforms.device)
window = torch.hann_window(
self.config.window_size, device=audio_waveforms.device
)
stft = torch.stft(
audio_waveforms,
self.config.window_size,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment