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

Only compare to scipy timing in FAST_RUN.

上级 4f3a52a5
...@@ -1256,7 +1256,8 @@ class test_structureddot(unittest.TestCase): ...@@ -1256,7 +1256,8 @@ class test_structureddot(unittest.TestCase):
overhead_tol = 0.003 # seconds overall overhead_tol = 0.003 # seconds overall
overhead_rtol = 1.2 # times as long overhead_rtol = 1.2 # times as long
utt.assert_allclose(scipy_result, theano_result) utt.assert_allclose(scipy_result, theano_result)
if not theano.config.mode in ["DebugMode", "DEBUG_MODE"]: if (theano.config.mode == "FAST_RUN" and
theano.config.cxx):
self.assertFalse(theano_time > overhead_rtol * scipy_time + self.assertFalse(theano_time > overhead_rtol * scipy_time +
overhead_tol) overhead_tol)
...@@ -1292,7 +1293,7 @@ class test_structureddot(unittest.TestCase): ...@@ -1292,7 +1293,7 @@ class test_structureddot(unittest.TestCase):
overhead_tol = 0.002 # seconds overhead_tol = 0.002 # seconds
overhead_rtol = 1.1 # times as long overhead_rtol = 1.1 # times as long
utt.assert_allclose(scipy_result, theano_result) utt.assert_allclose(scipy_result, theano_result)
if (not theano.config.mode in ["DebugMode", "DEBUG_MODE"] and if (theano.config.mode == "FAST_RUN" and
theano.config.cxx): theano.config.cxx):
self.assertFalse( self.assertFalse(
theano_time > overhead_rtol * scipy_time + overhead_tol, theano_time > overhead_rtol * scipy_time + overhead_tol,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论