提交 035490a2 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Merge pull request #211 from nouiz/fix_test

fix test in float32.
......@@ -47,7 +47,7 @@ def check_upper_triangular(pd, ch_f):
def test_cholesky():
rng = numpy.random.RandomState(utt.fetch_seed())
r = rng.randn(5, 5)
r = rng.randn(5, 5).astype(config.floatX)
pd = numpy.dot(r, r.T)
x = tensor.matrix()
chol = cholesky(x)
......@@ -66,7 +66,7 @@ def test_cholesky():
def test_cholesky_grad():
rng = numpy.random.RandomState(utt.fetch_seed())
r = rng.randn(5, 5)
r = rng.randn(5, 5).astype(config.floatX)
pd = numpy.dot(r, r.T)
# Check the default.
yield utt.verify_grad, cholesky, [pd], 3, rng
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论