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
2 changes: 1 addition & 1 deletion src/torchaudio/functional/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def melscale_fbanks(
enorm = 2.0 / (f_pts[2 : n_mels + 2] - f_pts[:n_mels])
fb *= enorm.unsqueeze(0)

if (fb.max(dim=0).values == 0.0).any():
if not torch.compiler.is_compiling() and (fb.max(dim=0).values == 0.0).any():
warnings.warn(
"At least one mel filterbank has all zero values. "
f"The value for `n_mels` ({n_mels}) may be set too high. "
Expand Down
Loading