提交 3428dc8e authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed imports in shared variables stuff

上级 605b91e4
......@@ -3,8 +3,7 @@ __docformat__ = 'restructuredtext en'
from theano.gof import Container, Variable, generic, graph, Constant, Value
from theano.compile import function, In
from sharedvalue import SharedVariable, shared
from theano.compile.sandbox.sharedvalue import SharedVariable, shared
class Param(object):
def __init__(self, variable, default=None, name=None, mutable=False, strict=False,
......
......@@ -2,13 +2,14 @@
__docformat__ = 'restructuredtext en'
import copy
from theano.gof import Container, Variable, generic
import numpy
import theano.tensor.basic
from theano.gof import Container, Variable, generic
from theano.tensor import TensorType
from theano.scalar import Scalar
from theano.compile import function
import numpy
class SharedVariable(Variable):
"""
......
import numpy, theano, unittest
from pfunc import pfunc
from sharedvalue import shared
from theano.compile.sandbox.pfunc import pfunc
from theano.compile.sandbox.sharedvalue import shared
from theano import tensor
from theano.tensor.nnet import sigmoid
......
......@@ -5,8 +5,8 @@ import theano
from theano.tensor import Tensor, dmatrix, dvector, lscalar
from theano import tensor
from sharedvalue import *
from pfunc import *
from theano.compile.sandbox.sharedvalue import *
from theano.compile.sandbox.pfunc import *
class Test_pfunc(unittest.TestCase):
......
......@@ -4,7 +4,7 @@ import copy
import theano
from theano.tensor import Tensor
from sharedvalue import *
from theano.compile.sandbox.sharedvalue import *
class Test_SharedVariable(unittest.TestCase):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论