提交 779c7e6c authored 作者: Frederic Bastien's avatar Frederic Bastien

Remove some reduction test case.

上级 d323c6cd
...@@ -319,8 +319,6 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -319,8 +319,6 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
((3, 3), (4, 2, 16, 16)), ((3, 3), (4, 2, 16, 16)),
((3, 2), (4, 2, 16, 16)), ((3, 2), (4, 2, 16, 16)),
((3, 2, 2), (3, 2, 16, 16, 16)), ((3, 2, 2), (3, 2, 16, 16, 16)),
((2, 3, 2), (3, 2, 16, 16, 16)),
((2, 2, 3), (3, 2, 16, 16, 16)),
((2, 2, 3, 2), (3, 2, 6, 6, 6, 5)), ((2, 2, 3, 2), (3, 2, 6, 6, 6, 5)),
) )
...@@ -371,10 +369,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -371,10 +369,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
# maxpool, stride, ignore_border, input, output sizes # maxpool, stride, ignore_border, input, output sizes
examples = ( examples = (
((1, 1), (1, 1), True, (4, 10, 16, 16), (4, 10, 16, 16)), ((1, 1), (1, 1), True, (4, 10, 16, 16), (4, 10, 16, 16)),
((1, 1), (3, 3), True, (4, 10, 16, 16), (4, 10, 6, 6)),
((1, 1), (5, 7), True, (4, 10, 16, 16), (4, 10, 4, 3)), ((1, 1), (5, 7), True, (4, 10, 16, 16), (4, 10, 4, 3)),
((1, 1), (1, 1), False, (4, 10, 16, 16), (4, 10, 16, 16)), ((1, 1), (1, 1), False, (4, 10, 16, 16), (4, 10, 16, 16)),
((1, 1), (3, 3), False, (4, 10, 16, 16), (4, 10, 6, 6)),
((1, 1), (5, 7), False, (4, 10, 16, 16), (4, 10, 4, 3)), ((1, 1), (5, 7), False, (4, 10, 16, 16), (4, 10, 4, 3)),
((3, 3), (1, 1), True, (4, 10, 16, 16), (4, 10, 14, 14)), ((3, 3), (1, 1), True, (4, 10, 16, 16), (4, 10, 14, 14)),
((3, 3), (3, 3), True, (4, 10, 16, 16), (4, 10, 5, 5)), ((3, 3), (3, 3), True, (4, 10, 16, 16), (4, 10, 5, 5)),
...@@ -389,10 +385,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -389,10 +385,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
((5, 3), (3, 3), False, (4, 10, 16, 16), (4, 10, 5, 6)), ((5, 3), (3, 3), False, (4, 10, 16, 16), (4, 10, 5, 6)),
((5, 3), (5, 7), False, (4, 10, 16, 16), (4, 10, 4, 3)), ((5, 3), (5, 7), False, (4, 10, 16, 16), (4, 10, 4, 3)),
((16, 16), (1, 1), True, (4, 10, 16, 16), (4, 10, 1, 1)), ((16, 16), (1, 1), True, (4, 10, 16, 16), (4, 10, 1, 1)),
((16, 16), (3, 3), True, (4, 10, 16, 16), (4, 10, 1, 1)),
((16, 16), (5, 7), True, (4, 10, 16, 16), (4, 10, 1, 1)), ((16, 16), (5, 7), True, (4, 10, 16, 16), (4, 10, 1, 1)),
((16, 16), (1, 1), False, (4, 10, 16, 16), (4, 10, 1, 1)), ((16, 16), (1, 1), False, (4, 10, 16, 16), (4, 10, 1, 1)),
((16, 16), (3, 3), False, (4, 10, 16, 16), (4, 10, 1, 1)),
((16, 16), (5, 7), False, (4, 10, 16, 16), (4, 10, 1, 1)), ((16, 16), (5, 7), False, (4, 10, 16, 16), (4, 10, 1, 1)),
((3,), (5,), True, (16,), (3,)), ((3,), (5,), True, (16,), (3,)),
((3,), (5,), True, (2, 16,), (2, 3,)), ((3,), (5,), True, (2, 16,), (2, 3,)),
...@@ -434,9 +428,7 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -434,9 +428,7 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
(8, 5), (8, 5), (8, 5)) (8, 5), (8, 5), (8, 5))
outputshps = ((4, 10, 4, 7), (4, 10, 5, 8), (4, 10, 2, 3), outputshps = ((4, 10, 4, 7), (4, 10, 5, 8), (4, 10, 2, 3),
(4, 10, 3, 4), (4, 10, 2, 3), (4, 10, 2, 3), (4, 10, 3, 4), (4, 10, 2, 3), (4, 10, 2, 3),
(4, 10, 4, 1), (4, 10, 4, 1), (4, 10, 3, 2), (4, 10, 4, 1),]
(4, 10, 4, 2), (4, 10, 1, 0), (4, 10, 1, 1),
(4, 10, 0, 0), (4, 10, 1, 1))
images = tensor.dtensor4() images = tensor.dtensor4()
for indx in np.arange(len(maxpoolshps)): for indx in np.arange(len(maxpoolshps)):
imvsize = imvsizs[indx] imvsize = imvsizs[indx]
...@@ -473,7 +465,6 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -473,7 +465,6 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
examples = ( examples = (
((3,), (2,), (2,), (5,)), ((3,), (2,), (2,), (5,)),
((3,), (2,), (2,), (4, 5)), ((3,), (2,), (2,), (4, 5)),
((3,), (2,), (2,), (4, 2, 5)),
((3,), (2,), (2,), (4, 2, 5, 5)), ((3,), (2,), (2,), (4, 2, 5, 5)),
((3, 3), (2, 2), (2, 2), (4, 2, 5, 5)), ((3, 3), (2, 2), (2, 2), (4, 2, 5, 5)),
((4, 4), (2, 2), (1, 2), (4, 2, 5, 5)), ((4, 4), (2, 2), (1, 2), (4, 2, 5, 5)),
...@@ -541,7 +532,6 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -541,7 +532,6 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
((2, 3), (2, 3, 3, 4)), ((2, 3), (2, 3, 3, 4)),
((1, 1, 1), (2, 3, 3)), ((1, 1, 1), (2, 3, 3)),
((3, 2, 2), (2, 3, 3, 4)), ((3, 2, 2), (2, 3, 3, 4)),
((2, 3, 2), (2, 3, 3, 4, 4)),
((2, 2, 3), (2, 3, 3, 4, 4)), ((2, 2, 3), (2, 3, 3, 4, 4)),
) )
...@@ -657,11 +647,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -657,11 +647,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
((1, 1), (2, 3, 3, 4)), ((1, 1), (2, 3, 3, 4)),
((3, 2), (2, 3, 3, 4)), ((3, 2), (2, 3, 3, 4)),
((2, 3), (2, 3, 3, 4)), ((2, 3), (2, 3, 3, 4)),
((1, 1, 1), (2, 3, 3, 4)),
((3, 2, 2), (2, 3, 3, 4)), ((3, 2, 2), (2, 3, 3, 4)),
((2, 3, 2), (2, 3, 3, 4)),
((2, 2, 3), (2, 3, 3, 4)), ((2, 2, 3), (2, 3, 3, 4)),
((2, 2, 3), (2, 1, 3, 3, 4)),
) )
for (avgpoolshp, inputsize) in examples: for (avgpoolshp, inputsize) in examples:
...@@ -751,11 +738,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -751,11 +738,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
((3,), (2,), (2,), (2, 10,)), ((3,), (2,), (2,), (2, 10,)),
((3,), (2,), (2,), (2, 1, 10,)), ((3,), (2,), (2,), (2, 1, 10,)),
((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)), ((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)),
((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)),
((3, 5), (2, 3), (2, 1), (1, 1, 10, 5)), ((3, 5), (2, 3), (2, 1), (1, 1, 10, 5)),
((3, 3), (3, 3), (2, 2), (1, 1, 5, 5)),
((5, 3, 3), (3, 2, 2), (2, 2, 2), (1, 1, 10, 5, 5)), ((5, 3, 3), (3, 2, 2), (2, 2, 2), (1, 1, 10, 5, 5)),
((3, 5, 3), (2, 3, 2), (2, 1, 2), (1, 1, 5, 10, 5)),
((3, 3, 5), (2, 2, 3), (2, 2, 1), (1, 1, 5, 5, 10)), ((3, 3, 5), (2, 2, 3), (2, 2, 1), (1, 1, 5, 5, 10)),
) )
...@@ -788,12 +772,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -788,12 +772,8 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
((3,), (2,), (2,), (2, 10,)), ((3,), (2,), (2,), (2, 10,)),
((3,), (2,), (2,), (2, 1, 10,)), ((3,), (2,), (2,), (2, 1, 10,)),
((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)), ((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)),
((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)),
((3, 5), (2, 3), (2, 1), (1, 1, 10, 5)), ((3, 5), (2, 3), (2, 1), (1, 1, 10, 5)),
((3, 3), (3, 3), (2, 2), (1, 1, 5, 5)), ((5, 3, 2), (3, 2, 1), (2, 2, 2), (1, 1, 10, 5, 5)),
((5, 3, 3), (3, 2, 2), (2, 2, 2), (1, 1, 10, 5, 5)),
((3, 5, 3), (2, 3, 2), (2, 1, 2), (1, 1, 5, 10, 5)),
((3, 3, 5), (2, 2, 3), (2, 2, 1), (1, 1, 5, 5, 10)),
) )
for (avgpoolshp, stridesize, padsize, inputsize) in examples: for (avgpoolshp, stridesize, padsize, inputsize) in examples:
...@@ -841,11 +821,9 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -841,11 +821,9 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
((3,), (2,), (2,), (2, 10,)), ((3,), (2,), (2,), (2, 10,)),
((3,), (2,), (2,), (2, 1, 10,)), ((3,), (2,), (2,), (2, 1, 10,)),
((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)), ((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)),
((5, 3), (3, 2), (2, 2), (1, 1, 10, 10)),
((3, 5), (2, 3), (2, 1), (1, 1, 10, 5)), ((3, 5), (2, 3), (2, 1), (1, 1, 10, 5)),
((3, 3), (3, 3), (2, 2), (1, 1, 5, 5)), ((3, 3), (3, 3), (2, 2), (1, 1, 5, 5)),
((5, 3, 3), (3, 2, 2), (2, 2, 2), (1, 1, 10, 5, 5)), ((5, 3, 3), (3, 2, 2), (2, 2, 2), (1, 1, 10, 5, 5)),
((3, 5, 3), (2, 3, 2), (2, 1, 2), (1, 1, 5, 10, 5)),
((3, 3, 5), (2, 2, 3), (2, 2, 1), (1, 1, 5, 5, 10)), ((3, 3, 5), (2, 2, 3), (2, 2, 1), (1, 1, 5, 5, 10)),
) )
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论