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

Make code more clear following code review.

上级 d8f94633
......@@ -4,7 +4,7 @@ import theano.scipy
enable_sparse = False
if theano.scipy.scipy_available:
import scipy
if not scipy.__version__ < '0.7':
if scipy.__version__ >= '0.7':
enable_sparse = True
else:
sys.stderr.write("WARNING: scipy version = %s. We request version >=0.7.0 for the sparse code as it has bugs fixed in the sparse matrix code.\n" % scipy.__version__)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论