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

Fix bug in buildbot in float32 for some seed.

上级 58f2a073
......@@ -3040,7 +3040,7 @@ class T_mean(unittest.TestCase):
x = theano.tensor.vector()
f = theano.function([x],theano.tensor.mean(x))
data = numpy.asarray(numpy.random.rand(50), dtype=config.floatX)
assert f(data) == numpy.mean(data)
assert numpy.allclose(f(data), numpy.mean(data))#, (f(data), numpy.mean(data), data)
# class T_abs(unittest.TestCase):
# def test_impl(self):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论