提交 7d2578c2 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Make the sig workaround for unsigned ints too.

上级 7fc2bcbf
......@@ -824,7 +824,7 @@ class Elemwise(OpenMPOp):
out_dtype = node.outputs[0].dtype
if (out_dtype in float_dtypes and
isinstance(self.nfunc, numpy.ufunc) and
node.inputs[0].dtype in int_dtypes):
node.inputs[0].dtype in discrete_dtypes):
char = numpy.sctype2char(out_dtype)
sig = char * node.nin + '->' + char * node.nout
node.tag.sig = sig
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论