提交 a77c4d70 authored 作者: Frederic's avatar Frederic

Fix test value when testing with the GPU.

上级 12ec5d30
...@@ -47,10 +47,16 @@ def test_profiling(): ...@@ -47,10 +47,16 @@ def test_profiling():
the_string = buf.getvalue() the_string = buf.getvalue()
lines1 = [l for l in the_string.split("\n") if "Max if linker" in l] lines1 = [l for l in the_string.split("\n") if "Max if linker" in l]
lines2 = [l for l in the_string.split("\n") if "Minimum peak" in l] lines2 = [l for l in the_string.split("\n") if "Minimum peak" in l]
assert "Max if linker=cvm(default): 4112KB (8204KB)" in the_string, ( if theano.config.device == 'cpu':
lines1, lines2) assert "Max if linker=cvm(default): 4112KB (8204KB)" in the_string, (
assert "Minimum peak from all valid apply node order is 4104KB" in the_string, ( lines1, lines2)
lines1, lines2) assert "Minimum peak from all valid apply node order is 4104KB" in the_string, (
lines1, lines2)
else:
assert "Max if linker=cvm(default): 8220KB (8220KB)" in the_string, (
lines1, lines2)
assert "Minimum peak from all valid apply node order is 4116KB" in the_string, (
lines1, lines2)
finally: finally:
theano.config.profile = config1 theano.config.profile = config1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论