「nopython」に関する NumbaDeprecationWarning 警告を修正

「nopython」に関する NumbaDeprecationWarning 警告を修正

FastChatを実行すると、以下の警告メッセージが表示されます。

D:\anaconda3\envs\fastchat\lib\site-packages\whisper\timing.py:58: NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' decorator. The implicit default value for this argument is currently False, but it will be changed to True in Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit for details.

解決策として、
D:\anaconda3\envs\fastchat\lib\site-packages\whisper\timing.py ファイルを変更します。

修正する前に:

@numba.jit
def backtrace(trace: np.ndarray):

変更後:

@numba.jit(nopython=True) 
def backtrace(trace: np.ndarray):

終わり!

おすすめ

転載: blog.csdn.net/engchina/article/details/132115225