提交 f1b0fac7 authored 作者: Frederic's avatar Frederic

remove from profile some function compilation done by Theano

上级 ea826fc5
......@@ -203,7 +203,8 @@ def version():
if version.v is None:
f = theano.function([], DnnVersion()(),
theano.Mode(optimizer=None))
theano.Mode(optimizer=None),
profile=False)
version.v = f()
return version.v
version.v = None
......
......@@ -177,7 +177,8 @@ def default_blas_ldflags():
# Now test it!
x = theano.tensor.fmatrix()
try:
theano.function([x], theano.tensor.blas._dot22(x,x))
theano.function([x], theano.tensor.blas._dot22(x,x),
profile=False)
except Exception as e:
print e
yield ""
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论