提交 9aacf893 authored 作者: Frederic's avatar Frederic

Fix test in DebugMode.

上级 3b09ad70
......@@ -61,7 +61,8 @@ class T_ProfileMode_WrapLinker(unittest.TestCase):
copy.deepcopy(modified_mode)
# More straightforward test
assert theano.compile.mode.get_default_mode().linker.fgraph is None
linker = theano.compile.mode.get_default_mode().linker
assert not hasattr(linker, "fgraph") or linker.fgraph is None
if __name__ == '__main__':
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论