提交 c4a00e11 authored 作者: Frederic Bastien's avatar Frederic Bastien

fix sparse test when scipy is not available.

上级 2660f285
...@@ -3,8 +3,11 @@ import unittest ...@@ -3,8 +3,11 @@ import unittest
from nose.plugins.skip import SkipTest from nose.plugins.skip import SkipTest
import numpy import numpy
import scipy.sparse as sp try:
import scipy.sparse import scipy.sparse as sp
import scipy.sparse
except ImportError:
pass#the variable enable_sparse will be used to disable the test file.
import theano import theano
from theano import compile from theano import compile
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论