提交 6cf66e44 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Do not try to generate C code for complex inverse

上级 cee1e02e
......@@ -2180,6 +2180,8 @@ class Inv(UnaryScalarOp):
return -gz / (x * x),
def c_code(self, node, name, (x,), (z,), sub):
if node.inputs[0].type in complex_types:
raise NotImplementedError()
return "%(z)s = 1.0 / %(x)s;" % locals()
inv = Inv(upgrade_to_float, name='inv')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论