提交 9b562c6f authored 作者: Frederic Bastien's avatar Frederic Bastien

bugfix to new erfc op.

上级 5daceb85
...@@ -34,7 +34,7 @@ erf = Erf(upgrade_to_float, name= 'erf') ...@@ -34,7 +34,7 @@ erf = Erf(upgrade_to_float, name= 'erf')
class Erfc(UnaryScalarOp): class Erfc(UnaryScalarOp):
def impl(self, x): def impl(self, x):
if imported_scipy_special: if imported_scipy_special:
return scipy.special.erf(x) return scipy.special.erfc(x)
else: else:
super(Erfc,self).impl(x) super(Erfc,self).impl(x)
def grad(self, (x, ), (gz, )): def grad(self, (x, ), (gz, )):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论