Procházet zdrojové kódy

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 před 1 rokem
rodič
revize
7ca9fbea86
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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