Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
[test_conv_lowering]: included 1D depthwise and regular convolutions …
Browse files Browse the repository at this point in the history
…in tests
  • Loading branch information
mmrahorovic committed Dec 12, 2020
1 parent 15e34ed commit 3ff449c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/transformation/test_conv_lowering.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ def test_non_equal_padding(
@pytest.mark.parametrize("idt", [DataType.INT2, DataType.INT4])
# kernel size
@pytest.mark.parametrize("k_H", [2, 4])
@pytest.mark.parametrize("k_W", [2, 4])
@pytest.mark.parametrize("k_W", [2, 4, 1])
# input dimension
@pytest.mark.parametrize("ifm_dim_H", [4, 6])
@pytest.mark.parametrize("ifm_dim_W", [4, 6])
@pytest.mark.parametrize("ifm_dim_W", [4, 6, 1])
# input channels
@pytest.mark.parametrize("ifm_ch", [2, 3])
# stride
Expand All @@ -182,6 +182,13 @@ def test_depthwise_conv_lowering(
pytest.skip("Kernel height must be smaller than image height")
if k_W > ifm_dim_W:
pytest.skip("Kernel width must be smaller than image height")
# Ensure the right padding parameters are set
if ifm_dim_H == 1:
padding[0] = 0
padding[2] = 0
if ifm_dim_W == 1:
padding[1] = 0
padding[3] = 0

wdt = idt
odt = DataType.INT32
Expand Down

0 comments on commit 3ff449c

Please # to comment.