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 4077c47 commit d78e1a1Copy full SHA for d78e1a1
pytensor/link/numba/dispatch/basic.py
@@ -168,8 +168,12 @@ def in_seq_empty_tuple(x, y):
168
enable_slice_boxing()
169
170
171
-@numba.generated_jit(nopython=True)
172
def to_scalar(x):
+ raise NotImplementedError()
173
+
174
175
+@numba.extending.overload(to_scalar)
176
+def impl_to_scalar(x):
177
if isinstance(x, (numba.types.Number, numba.types.Boolean)):
178
return lambda x: x
179
elif isinstance(x, numba.types.Array):
0 commit comments