提交 a22a1212 authored 作者: nouiz's avatar nouiz

Merge pull request #901 from nouiz/neib

Fix some tests. We where always using the wrong mode.
...@@ -18,10 +18,8 @@ else: ...@@ -18,10 +18,8 @@ else:
class T_GpuImages2Neibs(theano.sandbox.test_neighbours.T_Images2Neibs): class T_GpuImages2Neibs(theano.sandbox.test_neighbours.T_Images2Neibs):
def __init__(self, name): mode = mode_with_gpu
self.mode = mode_with_gpu op = GpuImages2Neibs
self.op = GpuImages2Neibs
return super(T_GpuImages2Neibs, self).__init__(name)
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()
...@@ -19,10 +19,8 @@ if not theano.config.cxx: ...@@ -19,10 +19,8 @@ if not theano.config.cxx:
raise SkipTest("G++ not available, so we need to skip this test.") raise SkipTest("G++ not available, so we need to skip this test.")
class T_Images2Neibs(unittest_tools.InferShapeTester): class T_Images2Neibs(unittest_tools.InferShapeTester):
def __init__(self, name): mode = mode_without_gpu
self.mode = mode_without_gpu op = Images2Neibs
self.op = Images2Neibs
return super(T_Images2Neibs, self).__init__(name)
def test_neibs(self): def test_neibs(self):
for shape, pshape in [((100, 40, 18, 18), (2, 2)), for shape, pshape in [((100, 40, 18, 18), (2, 2)),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论