Minor cleanup for Voxtral (#34247)
Signed-off-by: Andy Lo <andy@mistral.ai>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user