Skip to content

Commit 5e69937

Browse files
committed
Don't use deprecated PyArray_MoveInto
1 parent 8a83fb0 commit 5e69937

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytensor/tensor/blas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ def infer_shape(self, fgraph, node, input_shapes):
10361036
%(fail)s
10371037
}
10381038
1039-
if(PyArray_MoveInto(x_new, %(_x)s) == -1)
1039+
if(PyArray_CopyInto(x_new, %(_x)s) == -1)
10401040
{
10411041
%(fail)s
10421042
}
@@ -1062,7 +1062,7 @@ def infer_shape(self, fgraph, node, input_shapes):
10621062
%(fail)s
10631063
}
10641064
1065-
if(PyArray_MoveInto(y_new, %(_y)s) == -1)
1065+
if(PyArray_CopyInto(y_new, %(_y)s) == -1)
10661066
{
10671067
%(fail)s
10681068
}
@@ -1108,7 +1108,7 @@ def c_code(self, node, name, inp, out, sub):
11081108
def c_code_cache_version(self):
11091109
gv = self.build_gemm_version()
11101110
if gv:
1111-
return (7, *gv)
1111+
return (8, *gv)
11121112
else:
11131113
return gv
11141114

0 commit comments

Comments
 (0)