提交 c37a484b authored 作者: Frederic's avatar Frederic

small fix to tests.

上级 6117c9af
...@@ -97,8 +97,8 @@ class DummyConvTransp3D: ...@@ -97,8 +97,8 @@ class DummyConvTransp3D:
self.dW = rng.uniform(-1, 1, self.W.get_value(borrow=True).shape) self.dW = rng.uniform(-1, 1, self.W.get_value(borrow=True).shape)
self.db = rng.uniform(-1, 1, self.b.get_value(borrow=True).shape) self.db = rng.uniform(-1, 1, self.b.get_value(borrow=True).shape)
self.dH = rng.uniform(-1, 1, self.H.get_value(borrow=True).shape) self.dH = rng.uniform(-1, 1, self.H.get_value(borrow=True).shape)
self.dW, self.db, self.dH = shared(self.dW), shared(self.db), self.dW, self.db = shared(self.dW), shared(self.db),
shared(self.dH) self.dH = shared(self.dH)
self.d = d self.d = d
self.RShape = RShape self.RShape = RShape
......
...@@ -276,7 +276,7 @@ class T_prepend(utt.InferShapeTester): ...@@ -276,7 +276,7 @@ class T_prepend(utt.InferShapeTester):
def test0(self): def test0(self):
x = tensor.matrix('x') x = tensor.matrix('x')
y = Prepend_scalar_constant_to_each_row(4.)(x) y = Prepend_scalar_constant_to_each_row(4.)(x)
f = theano.function([x], [y]) f = theano.function([x], y)
m = numpy.random.rand(3, 5) m = numpy.random.rand(3, 5)
my = f(m) my = f(m)
self.assertTrue(my.shape == (3, 6), my.shape) self.assertTrue(my.shape == (3, 6), my.shape)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论