From e73d81af6aa5152b1408c3420620d0ae12f0181a Mon Sep 17 00:00:00 2001 From: Yaman Umuroglu <yamanu@amd.com> Date: Sun, 16 Oct 2022 17:40:15 +0300 Subject: [PATCH] [Test] cover cases with padding in dynamic conv tests --- .../test_fpgadataflow_convinputgenerator_rtl_dynamic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fpgadataflow/test_fpgadataflow_convinputgenerator_rtl_dynamic.py b/tests/fpgadataflow/test_fpgadataflow_convinputgenerator_rtl_dynamic.py index 7d3e69340..d1b926e4c 100644 --- a/tests/fpgadataflow/test_fpgadataflow_convinputgenerator_rtl_dynamic.py +++ b/tests/fpgadataflow/test_fpgadataflow_convinputgenerator_rtl_dynamic.py @@ -70,7 +70,7 @@ def create_conv_model(idim, ifm, k, stride, ofm, idt, wdt, pad_mode): pad_1 = _auto_pad_to_explicit_padding( pad_mode, int_dim, int_dim, k, k, stride, stride, 2 ) - odim = compute_conv_output_dim(int_dim, k, stride) + odim = compute_conv_output_dim(int_dim, k, stride, total_pad=pad_1[0] + pad_1[2]) oshp = (1, ofm, odim, odim) wshp = (ofm, ifm, k, k) wshp_1 = (ofm, ofm, k, k) @@ -164,7 +164,7 @@ def config_hook(configs): return write_swg_config -@pytest.mark.parametrize("pad_mode", ["VALID"]) +@pytest.mark.parametrize("pad_mode", ["SAME_UPPER", "VALID"]) @pytest.mark.slow @pytest.mark.vivado def test_fpgadataflow_conv_dynamic(pad_mode): -- GitLab