提交 231e9d68 authored 作者: Frederic Bastien's avatar Frederic Bastien

check only the first 8 decimal to make it consisten on all computer.

上级 7fa838e6
...@@ -530,7 +530,7 @@ def test_naacl_model(optimizer='fast_run', iters_per_unsup=10, iters_per_sup=10, ...@@ -530,7 +530,7 @@ def test_naacl_model(optimizer='fast_run', iters_per_unsup=10, iters_per_sup=10,
s0 = str(m.finetuning_update(*(inputs + [targets]))) s0 = str(m.finetuning_update(*(inputs + [targets])))
print iters_per_sup * (i+1), s0 print iters_per_sup * (i+1), s0
if iters_per_sup == 10: if iters_per_sup == 10:
assert s0.startswith('15.651277636') assert s0.startswith('15.65127763')#should check for the 8 decimal only.
if __name__ == '__main__': if __name__ == '__main__':
from theano import gof from theano import gof
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论