提交 54fc134b authored 作者: Frederic Bastien's avatar Frederic Bastien

fix buildbot error by not calling a function that don't accept other type.

上级 198b22ea
......@@ -10,7 +10,9 @@ from theano.tensor.basic import TensorType
try:
import scipy.sparse
from theano.sparse.basic import _is_sparse, SparseType
from theano.sparse.basic import SparseType
def _is_sparse(a):
return scipy.sparse.issparse(a)
except ImportError:
#scipy not imported, their can be only ndarray and cudandarray
def _is_sparse(a):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论