提交 962f7ed0 authored 作者: Frederic's avatar Frederic

Disable compute_test_value when detecting blas flag fix gh-3010

上级 6768002c
...@@ -176,13 +176,18 @@ def default_blas_ldflags(): ...@@ -176,13 +176,18 @@ def default_blas_ldflags():
yield flags yield flags
# Now test it! # Now test it!
x = theano.tensor.fmatrix()
try: try:
theano.function([x], theano.tensor.blas._dot22(x,x), old = config.compute_test_value
profile=False) config.compute_test_value = 'off'
except Exception as e: x = theano.tensor.fmatrix()
print(e) try:
yield "" theano.function([x], theano.tensor.blas._dot22(x, x),
profile=False)
except Exception as e:
print(e)
yield ""
finally:
config.compute_test_value = old
def static_default_blas_flags(): def static_default_blas_flags():
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论