Skip to content

Commit 4b83f94

Browse files
committed
Replace np.sctype2char
1 parent 92b257a commit 4b83f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytensor/tensor/elemwise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ def prepare_node(self, node, storage_map, compute_map, impl):
685685
and isinstance(self.nfunc, np.ufunc)
686686
and node.inputs[0].dtype in discrete_dtypes
687687
):
688-
char = np.sctype2char(out_dtype)
688+
char = np.dtype(out_dtype).char
689689
sig = char * node.nin + "->" + char * node.nout
690690
node.tag.sig = sig
691691
node.tag.fake_node = Apply(

0 commit comments

Comments
 (0)