We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a8f621 commit 75e9330Copy full SHA for 75e9330
src/torchaudio/functional/functional.py
@@ -580,7 +580,7 @@ def melscale_fbanks(
580
enorm = 2.0 / (f_pts[2 : n_mels + 2] - f_pts[:n_mels])
581
fb *= enorm.unsqueeze(0)
582
583
- if (fb.max(dim=0).values == 0.0).any():
+ if not torch.compiler.is_compiling() and (fb.max(dim=0).values == 0.0).any():
584
warnings.warn(
585
"At least one mel filterbank has all zero values. "
586
f"The value for `n_mels` ({n_mels}) may be set too high. "
0 commit comments