【发布时间】:2021-03-10 09:00:20
【问题描述】:
我正在体验 numba 以加快我的代码速度,我在此代码中遇到错误
@njit
def fee(x):
chroma_stft = librosa.feature.chroma_stft(y=data, sr=sampling_rate).ravel()
return(chroma_stft)
TypingError: Failed in nopython mode pipeline (step: nopython frontend) Unknown attribute 'chroma_stft' of type Module(<module 'librosa.feature' from '/usr/local/lib/python3.7/dist-packages/librosa/feature/__init__.py'>)
如何解决这个问题,有没有办法在 numba 中使用 scipy.stats 函数?
谢谢
【问题讨论】:
标签: python numpy numba librosa