提交 9f7a57fa authored 作者: Frederic's avatar Frederic

remove useless import that cause crash in the else clause.

Python was thinking that theano was a local variable!
上级 973798da
......@@ -466,9 +466,7 @@ def handle_shared_float32(tf):
This function is intended to be called from use(gpu_index), not directly.
"""
if tf:
import theano.compile
theano.compile.shared_constructor(float32_shared_constructor)
else:
theano.compile.shared_constructor(float32_shared_constructor, True)
assert (float32_shared_constructor not in
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论