Преглед на файлове

Fix numba depreceation notice (#1233)

From numba 0.57 raise a warning if `nopython` is not supplied:
https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit
Paul Willot преди 1 година
родител
ревизия
7ca9fbea86
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      whisper/timing.py

+ 1 - 1
whisper/timing.py

@@ -54,7 +54,7 @@ def median_filter(x: torch.Tensor, filter_width: int):
     return result
 
 
-@numba.jit
+@numba.jit(nopython=True)
 def backtrace(trace: np.ndarray):
     i = trace.shape[0] - 1
     j = trace.shape[1] - 1