提交 cc4c2b3a authored 作者: abalkin's avatar abalkin

Replaced relative imports with absolute.

上级 7bd463da
...@@ -25,7 +25,7 @@ from theano.gof.utils import MethodNotDefined ...@@ -25,7 +25,7 @@ from theano.gof.utils import MethodNotDefined
from theano.configparser import config from theano.configparser import config
from theano.tensor.elemwise import Elemwise, DimShuffle from theano.tensor.elemwise import Elemwise, DimShuffle
from theano import scalar from theano import scalar
import basic as T from theano.tensor import basic as T
from theano import compile # to register the optimizer built by this file from theano import compile # to register the optimizer built by this file
from theano.gof.python25 import any, all from theano.gof.python25 import any, all
...@@ -33,7 +33,7 @@ from theano.gof.opt import (Optimizer, pre_constant_merge, ...@@ -33,7 +33,7 @@ from theano.gof.opt import (Optimizer, pre_constant_merge,
pre_greedy_local_optimizer) pre_greedy_local_optimizer)
from theano.gof.opt import merge_optimizer from theano.gof.opt import merge_optimizer
from theano.gof import toolbox, DestroyHandler from theano.gof import toolbox, DestroyHandler
from basic import get_scalar_constant_value, ShapeError, NotScalarConstantError from theano.tensor.basic import get_scalar_constant_value, ShapeError, NotScalarConstantError
theano.configparser.AddConfigVar('on_shape_error', theano.configparser.AddConfigVar('on_shape_error',
......
...@@ -29,13 +29,13 @@ import logging ...@@ -29,13 +29,13 @@ import logging
_logger = logging.getLogger('theano.tensor.opt') _logger = logging.getLogger('theano.tensor.opt')
from theano import gof from theano import gof
from elemwise import CAReduce from theano.tensor.elemwise import CAReduce
import basic as T from theano.tensor import basic as T
from theano.gof.opt import Optimizer from theano.gof.opt import Optimizer
from theano.gof import InconsistencyError, toolbox from theano.gof import InconsistencyError, toolbox
from basic import get_scalar_constant_value, NotScalarConstantError from theano.tensor.basic import get_scalar_constant_value, NotScalarConstantError
from theano.tensor.opt import register_uncanonicalize from theano.tensor.opt import register_uncanonicalize
from theano import scalar as scal from theano import scalar as scal
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论