mirror of
https://github.com/openai/whisper.git
synced 2025-11-24 14:35:57 +00:00
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
This commit is contained in:
parent
b1c0815c79
commit
7ca9fbea86
@ -54,7 +54,7 @@ def median_filter(x: torch.Tensor, filter_width: int):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
@numba.jit
|
@numba.jit(nopython=True)
|
||||||
def backtrace(trace: np.ndarray):
|
def backtrace(trace: np.ndarray):
|
||||||
i = trace.shape[0] - 1
|
i = trace.shape[0] - 1
|
||||||
j = trace.shape[1] - 1
|
j = trace.shape[1] - 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user