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

Add an assert as this case isn't implemented.

上级 35268e1f
...@@ -56,6 +56,7 @@ class TestDownsampleFactorMax(utt.InferShapeTester): ...@@ -56,6 +56,7 @@ class TestDownsampleFactorMax(utt.InferShapeTester):
@staticmethod @staticmethod
def numpy_max_pool_2d_stride_padding( def numpy_max_pool_2d_stride_padding(
x, ds, ignore_border=True, st=None, padding=(0, 0), mode='max'): x, ds, ignore_border=True, st=None, padding=(0, 0), mode='max'):
assert ignore_border
pad_h = padding[0] pad_h = padding[0]
pad_w = padding[1] pad_w = padding[1]
h = x.shape[-2] h = x.shape[-2]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论