Skip to content

Commit 92011eb

Browse files
committed
numba reshape should always return an array
1 parent 9e79f3a commit 92011eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/link/numba/dispatch/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ def numba_funcify_Reshape(op, **kwargs):
698698

699699
@numba_njit
700700
def reshape(x, shape):
701-
return x.item()
701+
return np.asarray(x.item())
702702

703703
else:
704704

0 commit comments

Comments
 (0)