We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb3b7e commit 216f6b2Copy full SHA for 216f6b2
pytensor/link/numba/dispatch/basic.py
@@ -11,7 +11,7 @@
11
import scipy
12
import scipy.special
13
from llvmlite import ir
14
-from numba import prange, types
+from numba import types
15
from numba.core.errors import NumbaWarning, TypingError
16
from numba.cpython.unsafe.tuple import tuple_setitem # noqa: F401
17
from numba.extending import box, overload
@@ -467,11 +467,9 @@ def argort_vec(X, axis):
467
Y = np.swapaxes(X, axis, 0)
468
result = np.empty_like(Y)
469
470
- N = int(np.prod(np.array(Y.shape)[1:]))
471
indices = list(np.ndindex(Y.shape[1:]))
472
473
- for i in prange(N):
474
- idx = indices[i]
+ for idx in indices:
475
result[(slice(None), *idx)] = np.argsort(
476
Y[(slice(None), *idx)], kind=kind
477
)
0 commit comments