提交 31fe4c29 authored 作者: Frederic's avatar Frederic

fix import. It was causing a test to crash.

上级 a2862e24
...@@ -15,6 +15,7 @@ from theano import tensor ...@@ -15,6 +15,7 @@ from theano import tensor
from theano.compile.pfunc import rebuild_collect_shared from theano.compile.pfunc import rebuild_collect_shared
from theano.gof.python25 import any from theano.gof.python25 import any
from theano.tests import unittest_tools as utt from theano.tests import unittest_tools as utt
import theano.scalar.sharedvar
from numpy.testing.noseclasses import KnownFailureTest from numpy.testing.noseclasses import KnownFailureTest
...@@ -1121,7 +1122,6 @@ class T_Scan(unittest.TestCase): ...@@ -1121,7 +1122,6 @@ class T_Scan(unittest.TestCase):
v_vsample = numpy.array(rng.binomial(1, .5, size=(3, 20),), v_vsample = numpy.array(rng.binomial(1, .5, size=(3, 20),),
dtype='float32') dtype='float32')
vsample = theano.shared(v_vsample) vsample = theano.shared(v_vsample)
import theano.sandbox.rng_mrg
trng = theano.sandbox.rng_mrg.MRG_RandomStreams( trng = theano.sandbox.rng_mrg.MRG_RandomStreams(
utt.fetch_seed()) utt.fetch_seed())
...@@ -3217,7 +3217,6 @@ def test_speed_rnn(): ...@@ -3217,7 +3217,6 @@ def test_speed_rnn():
# The computation being tested here is a repeated tanh of a matrix-vector # The computation being tested here is a repeated tanh of a matrix-vector
# multiplication - the heart of an ESN or RNN. # multiplication - the heart of an ESN or RNN.
# #
import theano.scalar.sharedvar
#We need the CVM for this speed test #We need the CVM for this speed test
if not theano.config.cxx: if not theano.config.cxx:
...@@ -3297,7 +3296,6 @@ def test_speed_batchrnn(): ...@@ -3297,7 +3296,6 @@ def test_speed_batchrnn():
# The computation being tested here is a repeated tanh of a matrix-vector # The computation being tested here is a repeated tanh of a matrix-vector
# multiplication - the heart of an ESN or RNN. # multiplication - the heart of an ESN or RNN.
# #
import theano.scalar.sharedvar
#We need the CVM for this speed test #We need the CVM for this speed test
if not theano.config.cxx: if not theano.config.cxx:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论