提交 3d09661f authored 作者: David Warde-Farley's avatar David Warde-Farley

STY: misc whitespace + PEP8

上级 33c35e1b
...@@ -559,7 +559,7 @@ def test_full(): ...@@ -559,7 +559,7 @@ def test_full():
def test_subsample(): def test_subsample():
# implement when # implement when
shapes = [ shapes = [
((1, 1, 1, 1), (1, 1, 1, 1), (1,1), (1,1), (1,1)) ((1, 1, 1, 1), (1, 1, 1, 1), (1,1), (1,1), (1,1))
, ((1, 1, 1, 1), (1, 1, 1, 1), (2,2), (1,1), (1,1)) , ((1, 1, 1, 1), (1, 1, 1, 1), (2,2), (1,1), (1,1))
, ((4, 2, 10, 10), (3, 2, 2, 2), (1, 3), (1,1), (1,1)) , ((4, 2, 10, 10), (3, 2, 2, 2), (1, 3), (1,1), (1,1))
...@@ -580,7 +580,7 @@ def test_subsample(): ...@@ -580,7 +580,7 @@ def test_subsample():
ones = False ones = False
if ones: if ones:
random = False random = False
exec_conv(version_valid, shapes, verbose, random, 'valid', print_=print_, ones=ones) exec_conv(version_valid, shapes, verbose, random, 'valid', print_=print_, ones=ones)
exec_conv(version_full, shapes, verbose, random, 'full', print_=print_, ones=ones) exec_conv(version_full, shapes, verbose, random, 'full', print_=print_, ones=ones)
...@@ -609,9 +609,10 @@ class TestConv2DGPU(unittest.TestCase): ...@@ -609,9 +609,10 @@ class TestConv2DGPU(unittest.TestCase):
if theano.config.mode in ['DebugMode', 'DEBUG_MODE']: if theano.config.mode in ['DebugMode', 'DEBUG_MODE']:
theano_mode = theano.compile.mode.get_mode('FAST_RUN').including('gpu') theano_mode = theano.compile.mode.get_mode('FAST_RUN').including('gpu')
for mode in ['valid', 'full']: for mode in ['valid', 'full']:
for shapes in [((3,2,8,8), (4,2,5,5), (8,8)), for shapes in [((3, 2, 8, 8), (4, 2, 5, 5), (8, 8)),
((3,2,8,8), (4,2,5,5), (5,8)), ((3, 2, 8, 8), (4, 2, 5, 5), (5, 8)),
#((3,2,8,8), (4,2,5,5), (8,5)),# We use only the number of columns. #((3, 2, 8, 8), (4, 2, 5, 5), (8, 5)),
# We use only the number of columns.
]: ]:
self.assertRaises(ValueError, _params_allgood, shapes[0], shapes[1], self.assertRaises(ValueError, _params_allgood, shapes[0], shapes[1],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论