From 7ca9fbea86987a11266c0a6205bc284c089e5fbc Mon Sep 17 00:00:00 2001 From: Paul Willot Date: Fri, 5 May 2023 08:48:06 +0200 Subject: [PATCH] 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 --- whisper/timing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisper/timing.py b/whisper/timing.py index 055ccc0ae..1a73eaafc 100644 --- a/whisper/timing.py +++ b/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