提交 4752037c authored 作者: Frederic Bastien's avatar Frederic Bastien

Make the test test all the scan opt. Now it don't have problems.

上级 00094485
...@@ -113,10 +113,7 @@ class TestGaussNewton(unittest.TestCase): ...@@ -113,10 +113,7 @@ class TestGaussNewton(unittest.TestCase):
def test_nobatch(self): def test_nobatch(self):
# This used to give an error due to optimization "scan_merge_inouts". # This used to give an error due to optimization "scan_merge_inouts".
# The batch size is set to 1 and the data is represented by a matrix. # The batch size is set to 1 and the data is represented by a matrix.
# As of 2013-10-24, it still triggers an optimization error due to self._run(100, 10, batch_size=1, mode=mode)
# "remove_constants_and_unused_inputs_scan".
mode_exc = mode.excluding("remove_constants_and_unused_inputs_scan")
self._run(100, 10, batch_size=1, mode=mode_exc)
class GaussNewtonMatrix(object): class GaussNewtonMatrix(object):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论