Skip to content

Commit 1bcf463

Browse files
set dtype correctly
1 parent 3504f0b commit 1bcf463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/tensor/slinalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ def make_node(self, A, b):
17151715
B = as_tensor_variable(b)
17161716

17171717
out_dtype = pytensor.scalar.upcast(A.dtype, B.dtype)
1718-
output = b.type().astype(out_dtype)
1718+
output = b.type.clone(dtype=out_dtype)()
17191719

17201720
return pytensor.graph.basic.Apply(self, [A, B], [output])
17211721

0 commit comments

Comments
 (0)