Fft: ATen not compiled with MKL support

May I know what should I do prior to PyTorch installation to get rid of this error:

  File "main.py", line 15, in <module>
    specgram = torchaudio.transforms.Spectrogram()(waveform)
  File "/home/mnaderan/.local/lib/python2.7/site-packages/torch/nn/modules/module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "build/bdist.linux-x86_64/egg/torchaudio/transforms.py", line 70, in forward
  File "build/bdist.linux-x86_64/egg/torchaudio/functional.py", line 259, in spectrogram
  File "build/bdist.linux-x86_64/egg/torchaudio/functional.py", line 52, in _stft
  File "<__torch_function__ internals>", line 6, in stft
  File "/home/mnaderan/.local/lib/python2.7/site-packages/torch/_overrides.py", line 140, in _implement_torch_function
    return implementation(*args, **kwargs)
  File "/home/mnaderan/.local/lib/python2.7/site-packages/torch/functional.py", line 427, in stft
    return torch._C._VariableFunctions.stft(input, n_fft, hop_length, win_length, window, normalized, onesided)
RuntimeError: fft: ATen not compiled with MKL support
1 Like

bump! any solution to this problem?

for anyone coming across this, the issue seems to be a non intel cpu or you haven’t compiled with MKL support