提交 1cde57d4 authored 作者: Frederic Bastien's avatar Frederic Bastien

clean up import

上级 7515910e
...@@ -5,7 +5,7 @@ Defines Linkers that deal with C implementations. ...@@ -5,7 +5,7 @@ Defines Linkers that deal with C implementations.
# Python imports # Python imports
from copy import copy from copy import copy
import re #for set_compiledir import re #for set_compiledir
import os, sys, platform, StringIO, time import os, sys, StringIO
if sys.version_info[:2] >= (2,5): if sys.version_info[:2] >= (2,5):
import hashlib import hashlib
...@@ -16,7 +16,8 @@ else: ...@@ -16,7 +16,8 @@ else:
def hash_from_code(msg): def hash_from_code(msg):
return md5.new(msg).hexdigest() return md5.new(msg).hexdigest()
from theano.gof.python25 import any, all from theano.gof.python25 import all
from theano import config
# Note that we need to do this before importing cutils, since when there is # 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 # no theano cache dir initialized yet, importing cutils may require compilation
...@@ -33,13 +34,10 @@ import graph ...@@ -33,13 +34,10 @@ import graph
import link import link
import utils import utils
from compiledir import *
from compilelock import get_lock, release_lock from compilelock import get_lock, release_lock
import cmodule import cmodule
from theano.configparser import TheanoConfigParser, EnumStr, IntParam, FloatParam, BoolParam
import logging import logging
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论