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

rename fct so that nosetests don't try to run it.

上级 f18d434a
...@@ -803,7 +803,7 @@ def test_duplicate_arg_elemwise(): ...@@ -803,7 +803,7 @@ def test_duplicate_arg_elemwise():
import theano.tensor.tests.test_basic import theano.tensor.tests.test_basic
test_shared_options = theano.tensor.tests.test_basic.build_test_shared_options(tcn.shared_constructor, 'float32', False, False, False, cuda_ndarray.CudaNdarray, theano.tensor.exp, numpy.exp) test_shared_options = theano.tensor.tests.test_basic.makeSharedTester(tcn.shared_constructor, 'float32', False, False, False, cuda_ndarray.CudaNdarray, theano.tensor.exp, numpy.exp)
if __name__ == '__main__': if __name__ == '__main__':
test_many_arg_elemwise() test_many_arg_elemwise()
......
...@@ -3378,7 +3378,7 @@ def test_dimshuffle_duplicate(): ...@@ -3378,7 +3378,7 @@ def test_dimshuffle_duplicate():
assert success assert success
def build_test_shared_options(shared_constructor_, def makeSharedTester(shared_constructor_,
dtype_, dtype_,
get_value_borrow_true_alias_, get_value_borrow_true_alias_,
shared_borrow_true_alias_, shared_borrow_true_alias_,
...@@ -3552,7 +3552,7 @@ def build_test_shared_options(shared_constructor_, ...@@ -3552,7 +3552,7 @@ def build_test_shared_options(shared_constructor_,
return SharedTester return SharedTester
test_shared_options=build_test_shared_options(tensor.shared, 'float64', test_shared_options=makeSharedTester(tensor.shared, 'float64',
True, True, True, numpy.ndarray, True, True, True, numpy.ndarray,
theano.tensor.sum, numpy.sum) theano.tensor.sum, numpy.sum)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论