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 0aaf9a5 commit 20378a7Copy full SHA for 20378a7
src/torchaudio/functional/functional.py
@@ -876,7 +876,7 @@ def mask_along_axis_iid(
876
specgrams = specgrams.transpose(axis, -1)
877
# this aims to avoid CPU-GPU sync from upstream
878
specgrams = (
879
- torch.where((mask >= mask_start) & (mask < mask_end), mask_value.repeat(*specgrams.shape), specgrams)
+ torch.where((mask >= mask_start) & (mask < mask_end), mask_value.repeat(specgrams.shape), specgrams)
880
if isinstance(mask_value, Tensor)
881
else specgrams.masked_fill((mask >= mask_start) & (mask < mask_end), mask_value)
882
)
0 commit comments