提交 b4b7d69f authored 作者: Nouiz's avatar Nouiz

make test restect floatX.

上级 31bd05df
...@@ -66,7 +66,7 @@ def test_cholesky(): ...@@ -66,7 +66,7 @@ def test_cholesky():
def test_cholesky_grad(): def test_cholesky_grad():
rng = numpy.random.RandomState(utt.fetch_seed()) 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) pd = numpy.dot(r, r.T)
# Check the default. # Check the default.
yield utt.verify_grad, cholesky, [pd], 3, rng yield utt.verify_grad, cholesky, [pd], 3, rng
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论