提交 4aa2ca61 authored 作者: Frederic's avatar Frederic

fix for python 2.4

上级 3827c9ef
...@@ -20,7 +20,7 @@ import theano ...@@ -20,7 +20,7 @@ import theano
from theano import tensor from theano import tensor
from theano.tensor import opt, get_constant_value from theano.tensor import opt, get_constant_value
from theano import gof from theano import gof
from theano.gof.python25 import maxsize from theano.gof.python25 import maxsize, any
from theano.gof.opt import Optimizer from theano.gof.opt import Optimizer
from theano.gof import toolbox, DestroyHandler, InconsistencyError from theano.gof import toolbox, DestroyHandler, InconsistencyError
from theano.compile import optdb from theano.compile import optdb
......
...@@ -732,7 +732,7 @@ class T_SharedRandomStreams(unittest.TestCase): ...@@ -732,7 +732,7 @@ class T_SharedRandomStreams(unittest.TestCase):
""" """
Test that random state can be transferred from one theano graph to another. Test that random state can be transferred from one theano graph to another.
""" """
class Graph(): class Graph:
def __init__(self, seed=123): def __init__(self, seed=123):
self.rng = RandomStreams(seed) self.rng = RandomStreams(seed)
self.y = self.rng.uniform(size=(1,)) self.y = self.rng.uniform(size=(1,))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论