提交 54170461 authored 作者: Frederic Bastien's avatar Frederic Bastien

don't test shared variable optimization in FAST_COMPILE mode.

上级 21f90068
...@@ -639,8 +639,8 @@ class Test_aliasing_rules(unittest.TestCase): ...@@ -639,8 +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']: if theano.config.mode not in ['DebugMode', 'DEBUG_MODE', 'FAST_COMPILE']:
#we don't ask DebugMode to don't make copy. We have the right to do so. #we don't ask DebugMode and FAST_COMPILE 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论