提交 24e1880c authored 作者: Razvan Pascanu's avatar Razvan Pascanu

added extra comment explaining why the import cuda is done inside of the

function
上级 7be28f3d
...@@ -914,7 +914,10 @@ def scan( fn ...@@ -914,7 +914,10 @@ def scan( fn
shared_inner_outputs ) shared_inner_outputs )
if condition is not None: if condition is not None:
inner_outs.append(condition) inner_outs.append(condition)
# Cuda is imported here, instead of being imported on top of the file
# because forces on the user some dependencies that we might do not want
# to. Currently we are working on removing the dependencies on sandbox
# code completeley.
from theano.sandbox import cuda from theano.sandbox import cuda
if cuda.cuda_available: if cuda.cuda_available:
# very often we end up in this situation when we want to # very often we end up in this situation when we want to
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论