提交 9cae944f authored 作者: Matt Graham's avatar Matt Graham

Removing C-code as i0/i1 not available.

上级 a50e47b7
...@@ -449,13 +449,6 @@ class I1(UnaryScalarOp): ...@@ -449,13 +449,6 @@ class I1(UnaryScalarOp):
def grad(self, inp, grads): def grad(self, inp, grads):
raise NotImplementedError() raise NotImplementedError()
def c_code(self, node, name, inp, out, sub):
x, = inp
z, = out
if node.inputs[0].type in float_types:
return """%(z)s =
i1(%(x)s);""" % locals()
raise NotImplementedError('only floating point is implemented')
i1 = I1(upgrade_to_float, name='i1') i1 = I1(upgrade_to_float, name='i1')
...@@ -479,11 +472,4 @@ class I0(UnaryScalarOp): ...@@ -479,11 +472,4 @@ class I0(UnaryScalarOp):
gz, = grads gz, = grads
return [gz * i1(x)] return [gz * i1(x)]
def c_code(self, node, name, inp, out, sub):
x, = inp
z, = out
if node.inputs[0].type in float_types:
return """%(z)s =
i0(%(x)s);""" % locals()
raise NotImplementedError('only floating point is implemented')
i0 = I0(upgrade_to_float, name='i0') i0 = I0(upgrade_to_float, name='i0')
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论