提交 8fb4fe42 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fix nose printing

上级 3b333258
...@@ -904,6 +904,12 @@ class T_Join_and_Split(theano.tensor.tests.test_basic.T_Join_and_Split): ...@@ -904,6 +904,12 @@ class T_Join_and_Split(theano.tensor.tests.test_basic.T_Join_and_Split):
# This is to don't duplicate test. # This is to don't duplicate test.
class T_subtensor(theano.tensor.tests.test_basic.T_subtensor): class T_subtensor(theano.tensor.tests.test_basic.T_subtensor):
# This prevents nose from printing method docstrings instead of method
# names
def shortDescription(self):
return None
shared = staticmethod(cuda.shared_constructor) shared = staticmethod(cuda.shared_constructor)
sub = cuda.GpuSubtensor sub = cuda.GpuSubtensor
inc_sub = cuda.GpuIncSubtensor inc_sub = cuda.GpuIncSubtensor
...@@ -921,6 +927,7 @@ class T_subtensor(theano.tensor.tests.test_basic.T_subtensor): ...@@ -921,6 +927,7 @@ class T_subtensor(theano.tensor.tests.test_basic.T_subtensor):
self).__init__(name) self).__init__(name)
def test_adv_sub1_fast(self): def test_adv_sub1_fast(self):
"""We check that the special cases of advanced indexing that """We check that the special cases of advanced indexing that
use CudaNdarrayTakeFrom are handled correctly use CudaNdarrayTakeFrom are handled correctly
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论