提交 81daec94 authored 作者: Frederic's avatar Frederic

fix test in fast_compile.

上级 46cab240
...@@ -249,7 +249,7 @@ class T_sigmoid_opts(unittest.TestCase): ...@@ -249,7 +249,7 @@ class T_sigmoid_opts(unittest.TestCase):
# and DebugMode will complain. Everything is fine afterwards. # and DebugMode will complain. Everything is fine afterwards.
mode = self.get_mode() mode = self.get_mode()
if not isinstance(mode, theano.compile.DebugMode): if not isinstance(mode, theano.compile.DebugMode):
f = theano.function([x, lr], ux) f = theano.function([x, lr], ux, mode=mode)
ux_v = f([[50]], 0.1) ux_v = f([[50]], 0.1)
assert not numpy.isnan(ux_v) assert not numpy.isnan(ux_v)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论