提交 4fcfcae8 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Use absolute imports for clarity and safety

上级 906dba3b
......@@ -13,10 +13,10 @@ except ImportError:
sys.stderr.write("WARNING: scipy can't be imported."
" We disable the sparse matrix code.")
from type import *
from theano.sparse.type import *
if enable_sparse:
from basic import *
import opt
import sharedvar
from sharedvar import sparse_constructor as shared
from theano.sparse.basic import *
from theano.sparse import opt
from theano.sparse import sharedvar
from theano.sparse.sharedvar import sparse_constructor as shared
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论