提交 7e6ca506 authored 作者: Frederic Bastien's avatar Frederic Bastien

disable part of a test in debug mode that is test something debug don't need to conform.

上级 673ee5f8
...@@ -639,6 +639,8 @@ class Test_aliasing_rules(unittest.TestCase): ...@@ -639,6 +639,8 @@ class Test_aliasing_rules(unittest.TestCase):
assert not numpy.may_share_memory(data_of(A), data_of(B)) assert not numpy.may_share_memory(data_of(A), data_of(B))
# theano should have been smart enough to not make copies # theano should have been smart enough to not make copies
if theano.config.mode not in ['DebugMode', 'DEBUG_MODE']:
#we don't ask DebugMode to don't make copy. We have the right to do so.
assert numpy.all(data_of(A) < 5) assert numpy.all(data_of(A) < 5)
data_of_b += 10 data_of_b += 10
assert numpy.all(data_of(A) > 5) assert numpy.all(data_of(A) > 5)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论