提交 dbf20dd7 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix the no_cycle test errors by applying manual surgery to shape_opt_cycle.pkl

上级 cd3979e5
...@@ -3268,6 +3268,9 @@ class test_shapeoptimizer(unittest.TestCase): ...@@ -3268,6 +3268,9 @@ class test_shapeoptimizer(unittest.TestCase):
if sys.version_info[:2] < (2, 5): if sys.version_info[:2] < (2, 5):
raise SkipTest("Test skipped due to a too old python") raise SkipTest("Test skipped due to a too old python")
# This pickle file has undergone manual surgery due to changes
# in scan and may or may not run correctly. It does passes
# the test below.
pkl_filename = os.path.join(os.path.dirname(theano.__file__), pkl_filename = os.path.join(os.path.dirname(theano.__file__),
'tensor', 'tests', 'shape_opt_cycle.pkl') 'tensor', 'tests', 'shape_opt_cycle.pkl')
# Due to incompatibilities between python 2 and 3 in the format # Due to incompatibilities between python 2 and 3 in the format
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论