Skip to content

Commit 9828ec8

Browse files
committed
numba reshape should always return an array
1 parent 586a508 commit 9828ec8

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
@@ -685,7 +685,7 @@ def numba_funcify_Reshape(op, **kwargs):
685685

686686
@numba_njit(inline="always")
687687
def reshape(x, shape):
688-
return x.item()
688+
return np.asarray(x.item())
689689

690690
else:
691691

0 commit comments

Comments
 (0)