Developer Tools

PyTorch commit 5682320 squashes MPS FFT warning

Single commit ends nagging warning for Apple Silicon users

Deep Dive

PyTorch has merged a fix for a long-standing warning in its MPS (Metal Performance Shaders) backend, specifically affecting FFT (Fast Fourier Transform) operations used in audio processing and signal analysis. The commit, identified as 5682320 and submitted via PR #183061 by contributor Isalia20, resolves issue #174003 which triggered a deprecation or numerical warning when calling STFT (Short-Time Fourier Transform) or ISTFT (Inverse Short-Time Fourier Transform) on Apple Silicon GPUs. The warning, while not breaking functionality, cluttered logs and could mask critical errors.

The fix was verified on a MacBook Pro running PyTorch 2.13.0 with MPS device. The contributor confirmed that the warning no longer appears after the patch, as shown in their terminal output. The change was approved by PyTorch core member malfet. This update is particularly beneficial for users working on audio tasks, such as speech recognition or music generation, who rely on efficient FFT operations on Apple hardware. While minor, the fix underscores PyTorch's commitment to polishing cross-platform support, especially as Apple Silicon gains traction in ML workloads.

Key Points
  • Fixes warning in MPS backend for FFT operations (STFT/ISTFT) – issue #174003
  • Submitted via PR #183061 by developer Isalia20, approved by PyTorch maintainer malfet
  • Verified on PyTorch 2.13.0 (git snapshot 1da20e7) – no warning seen after commit

Why It Matters

Cleaner audio processing on Apple Silicon improves developer experience and log readability.