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

Better match replaced relative imports.

上级 12fc0d62
...@@ -5,16 +5,16 @@ import warnings ...@@ -5,16 +5,16 @@ import warnings
from theano.tensor.basic import * from theano.tensor.basic import *
import theano.tensor.opt from theano.tensor import opt
import theano.tensor.opt_uncanonicalize from theano.tensor import opt_uncanonicalize
import theano.tensor.blas from theano.tensor import blas
import theano.tensor.blas_scipy from theano.tensor import blas_scipy
import theano.tensor.blas_c from theano.tensor import blas_c
import theano.tensor.xlogx from theano.tensor import xlogx
import theano.tensor.raw_random from theano.tensor import raw_random
import theano.tensor.randomstreams from theano.tensor import randomstreams
import theano.tensor.shared_randomstreams from theano.tensor import shared_randomstreams
from theano.tensor.randomstreams import \ from theano.tensor.randomstreams import \
RandomStreams RandomStreams
...@@ -23,7 +23,7 @@ random = RandomStreams(seed=0xBAD5EED, no_warn = True) ...@@ -23,7 +23,7 @@ random = RandomStreams(seed=0xBAD5EED, no_warn = True)
from theano.tensor.elemwise import DimShuffle, Elemwise, CAReduce from theano.tensor.elemwise import DimShuffle, Elemwise, CAReduce
import theano.tensor.sharedvar # adds shared-variable constructors from theano.tensor import sharedvar # adds shared-variable constructors
# We import as `_shared` instead of `shared` to avoid confusion between # We import as `_shared` instead of `shared` to avoid confusion between
# `theano.shared` and `tensor._shared`. # `theano.shared` and `tensor._shared`.
...@@ -48,7 +48,7 @@ def shared(*args, **kw): ...@@ -48,7 +48,7 @@ def shared(*args, **kw):
return _shared(*args, **kw) return _shared(*args, **kw)
import theano.tensor.nnet # used for softmax, sigmoid, etc. from theano.tensor import nnet # used for softmax, sigmoid, etc.
from theano.gradient import Rop, Lop, grad, numeric_grad, verify_grad, \ from theano.gradient import Rop, Lop, grad, numeric_grad, verify_grad, \
jacobian, hessian jacobian, hessian
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论