Skip to content

Commit 75e9330

Browse files
authored
Update functional.py
1 parent 1a8f621 commit 75e9330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torchaudio/functional/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def melscale_fbanks(
580580
enorm = 2.0 / (f_pts[2 : n_mels + 2] - f_pts[:n_mels])
581581
fb *= enorm.unsqueeze(0)
582582

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

0 commit comments

Comments
 (0)