提交 3d2c9216 authored 作者: Frederic Bastien's avatar Frederic Bastien

Add c code for conj except for complex. fix gh-5233

上级 c110f99c
......@@ -3607,6 +3607,16 @@ class Conj(UnaryScalarOp):
def impl(self, x):
return numpy.conj(x)
def c_code(self, node, name, inputs, outputs, sub):
(x,) = inputs
(z,) = outputs
if node.inputs[0].type in complex_types:
# For non complex, th
raise NotImplementedError('type have no c code',
node.inputs[0].type)
return "%(z)s = %(x)s;" % locals()
conj = Conj(same_out_min8, name='conj')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论