提交 f5aec8b8 authored 作者: Frederic Bastien's avatar Frederic Bastien

Unhid test that had the same name. WHen two test have the same name only the last is executed!

上级 c10505f3
...@@ -186,11 +186,17 @@ class test_RopLop(unittest.TestCase): ...@@ -186,11 +186,17 @@ class test_RopLop(unittest.TestCase):
self.in_shape) self.in_shape)
def test_max_argmax(self): def test_max(self):
## If we call max directly, we will return an CAReduce object
## and he don't have R_op implemented!
#self.check_mat_rop_lop(TT.max(self.mx, axis=[0,1])[0],
# ())
self.check_mat_rop_lop(TT.max(self.mx, axis=0),
(self.mat_in_shape[1],))
self.check_mat_rop_lop(TT.max(self.mx, axis=1), self.check_mat_rop_lop(TT.max(self.mx, axis=1),
(self.mat_in_shape[0],)) (self.mat_in_shape[0],))
def test_max_argmax(self): def test_argmax(self):
self.check_nondiff_rop(TT.argmax(self.mx,axis=1)) self.check_nondiff_rop(TT.argmax(self.mx,axis=1))
def test_subtensor(self): def test_subtensor(self):
...@@ -204,7 +210,7 @@ class test_RopLop(unittest.TestCase): ...@@ -204,7 +210,7 @@ class test_RopLop(unittest.TestCase):
self.check_rop_lop(out, self.in_shape) self.check_rop_lop(out, self.in_shape)
def test_incsubtensor1(self): def test_incsubtensor2(self):
tv = numpy.asarray( self.rng.uniform(size=(10,)), tv = numpy.asarray( self.rng.uniform(size=(10,)),
theano.config.floatX) theano.config.floatX)
t = theano.shared(tv) t = theano.shared(tv)
...@@ -220,7 +226,7 @@ class test_RopLop(unittest.TestCase): ...@@ -220,7 +226,7 @@ class test_RopLop(unittest.TestCase):
self.check_rop_lop(out, self.in_shape) self.check_rop_lop(out, self.in_shape)
def test_setsubtensor1(self): def test_setsubtensor2(self):
tv = numpy.asarray( self.rng.uniform(size=(10,)), tv = numpy.asarray( self.rng.uniform(size=(10,)),
theano.config.floatX) theano.config.floatX)
t = theano.shared(tv) t = theano.shared(tv)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论