提交 f4b707da authored 作者: Razvan Pascanu's avatar Razvan Pascanu

moved the test to conv where it makes more sense

上级 201e95a7
...@@ -2018,12 +2018,6 @@ class T_Scan(unittest.TestCase): ...@@ -2018,12 +2018,6 @@ class T_Scan(unittest.TestCase):
if theano.config.mode != 'FAST_COMPILE': if theano.config.mode != 'FAST_COMPILE':
self.assertTrue(nb_shape_i == 1) self.assertTrue(nb_shape_i == 1)
def test_bug_josh_reported(self):
import theano.tensor.signal.conv
m1 = theano.tensor.matrix()
m2 = theano.tensor.matrix()
conv = theano.tensor.signal.conv.conv2d(m1, m2)
def test_merge(self): def test_merge(self):
x = theano.tensor.vector() x = theano.tensor.vector()
y = theano.tensor.vector() y = theano.tensor.vector()
......
...@@ -97,3 +97,14 @@ class TestSignalConv2D(unittest.TestCase): ...@@ -97,3 +97,14 @@ class TestSignalConv2D(unittest.TestCase):
self.fail() self.fail()
except: except:
pass pass
def test_bug_josh_reported(self):
"""
Test refers to a bug reported by Josh, when due to a bad merge these
few lines of code failed. See
http://groups.google.com/group/theano-dev/browse_thread/thread/8856e7ca5035eecb
"""
m1 = theano.tensor.matrix()
m2 = theano.tensor.matrix()
rval = conv.conv2d(m1, m2)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论