提交 682ce237 authored 作者: Frederic Bastien's avatar Frederic Bastien

Use the shorter and public API import.

上级 26d47057
......@@ -9,7 +9,7 @@ import warnings
import theano
from theano import gof
import theano.gof.vm
from theano.configparser import config
from theano import config
from six import string_types
from theano.compile.function_module import Supervisor
......
......@@ -6,7 +6,7 @@ from six.moves import StringIO
import numpy as np
import theano
from theano.configparser import config
from theano import config
import theano.tensor as T
from theano.compile import Mode
from .mode import get_mode
......
......@@ -27,7 +27,7 @@ from theano.compat import PY3, decode, decode_iter
from six import b, BytesIO, StringIO, string_types, iteritems
from six.moves import xrange
from theano.gof.utils import flatten
from theano.configparser import config
from theano import config
from theano.gof.utils import hash_from_code
from theano.misc.windows import (subprocess_Popen,
output_subprocess_Popen)
......
......@@ -8,7 +8,7 @@ import numpy as np
import theano
from six import string_types, iteritems
from theano.configparser import config
from theano import config
from theano.gof.utils import flatten
......
......@@ -27,7 +27,7 @@ from theano import gof, printing
from theano.gof import (Op, utils, Variable, Constant, Type, Apply,
FunctionGraph)
from functools import partial
from theano.configparser import config
from theano import config
from theano.gradient import DisconnectedType
from theano.gradient import grad_undefined
......
......@@ -12,7 +12,7 @@ import numbers
import theano
from theano.compat import izip
from theano.configparser import config
from theano import config
from theano import gof
from theano.gof import Apply, Constant, Op, Variable, ParamsType
from theano.gof.type import Generic
......
......@@ -25,7 +25,7 @@ from theano.gof import Variable, Constant
from theano.gof.opt import copy_stack_trace, in2out
from theano.gof.utils import MethodNotDefined
from theano.gradient import DisconnectedType
from theano.configparser import config
from theano import config
from theano.tensor.elemwise import Elemwise, DimShuffle
from theano.tensor.subtensor import (get_idx_list, get_canonical_form_slice,
Subtensor, IncSubtensor, make_constant,
......
......@@ -15,7 +15,7 @@ from theano.gof import Constant, Variable
from theano.gof.utils import hashtype
from theano.tensor.utils import hash_from_ndarray
from theano.tensor.type import TensorType
from theano.configparser import config
from theano import config
def equal_slices(s1, s2):
......
......@@ -21,7 +21,7 @@ import numpy as np
import theano
import theano.tensor as T
from theano.configparser import config
from theano import config
try:
from nose.plugins.skip import SkipTest
except ImportError:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论