提交 735263e4 authored 作者: Frederic's avatar Frederic

Remove warning when not needed and make the message more clear.

上级 bee68872
...@@ -169,8 +169,16 @@ try: ...@@ -169,8 +169,16 @@ try:
} }
except ImportError, e: except ImportError, e:
have_fblas = False have_fblas = False
_logger.warning('Failed to import scipy.linalg.blas. ' # This is used in Gemv and ScipyGer. We use CGemv and CGer
'Falling back on slower implementations (%s)', str(e)) # when theano.config.blas.ldflags is defined. So we don't need a
# warning in that case.
if not config.blas.ldflags:
_logger.warning('Failed to import scipy.linalg.blas and '
'Theano flag blas.ldflags empty. '
'Falling back on slower implementations for '
'dot(matrix, vector), dot(vector, matrix) and '
'dot(vector, vector) (%s)',
str(e))
class Gemv(Op): class Gemv(Op):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论