提交 2305d940 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix a failing test on linux.

上级 2a9acfeb
...@@ -9,6 +9,7 @@ except ImportError: ...@@ -9,6 +9,7 @@ except ImportError:
import theano import theano
from theano import sparse, config, tensor from theano import sparse, config, tensor
from theano.sparse import enable_sparse from theano.sparse import enable_sparse
from theano.tests import unittest_tools as utt
if not enable_sparse: if not enable_sparse:
raise SkipTest('Optional package sparse disabled') raise SkipTest('Optional package sparse disabled')
...@@ -167,5 +168,5 @@ def test_sd_csc(): ...@@ -167,5 +168,5 @@ def test_sd_csc():
res = theano.sparse.opt.sd_csc(a_val, a_ind, a_ptr, nrows, b).eval() res = theano.sparse.opt.sd_csc(a_val, a_ind, a_ptr, nrows, b).eval()
assert (res==target).all() utt.assert_allclose(res, target)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论