提交 2c5d9e37 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Re-arranged imports to avoid crash when there is no existing cache directory

上级 4f455fdf
......@@ -18,6 +18,14 @@ else:
from theano.gof.python25 import any, all
# Note that we need to do this before importing cutils, since when there is
# no theano cache dir initialized yet, importing cutils may require compilation
# of cutils_ext.
from theano.configparser import AddConfigVar, StrParam
AddConfigVar('gcc.cxxflags',
"Extra compiler flags for gcc",
StrParam(""))
# gof imports
import cutils
from env import Env
......@@ -30,11 +38,8 @@ from compilelock import get_lock, release_lock
import cmodule
from theano.configparser import TheanoConfigParser, AddConfigVar, EnumStr, StrParam, IntParam, FloatParam, BoolParam
from theano.configparser import TheanoConfigParser, EnumStr, IntParam, FloatParam, BoolParam
AddConfigVar('gcc.cxxflags',
"Extra compiler flags for gcc",
StrParam(""))
import logging
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论