Skip to content

Commit

Permalink
coverage++
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Jan 22, 2025
1 parent c82aa1f commit a3bd834
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_dequantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ static int test_dequantize(const ncnn::Mat& a, int scale_data_size, int bias_dat
static int test_dequantize_0()
{
return 0
|| test_dequantize(RandomIntMat(11, 13, 48), 1, 48)
|| test_dequantize(RandomIntMat(11, 13, 48), 1, 1)
|| test_dequantize(RandomIntMat(11, 13, 48), 1, 0)
|| test_dequantize(RandomIntMat(11, 13, 48), 48, 48)
|| test_dequantize(RandomIntMat(11, 13, 48), 48, 1)
|| test_dequantize(RandomIntMat(11, 13, 48), 48, 0)
|| test_dequantize(RandomIntMat(5, 7, 24), 1, 24)
|| test_dequantize(RandomIntMat(5, 7, 24), 1, 1)
|| test_dequantize(RandomIntMat(5, 7, 24), 1, 0)
Expand All @@ -61,6 +67,12 @@ static int test_dequantize_0()
static int test_dequantize_1()
{
return 0
|| test_dequantize(RandomIntMat(127, 48), 1, 48)
|| test_dequantize(RandomIntMat(127, 48), 1, 1)
|| test_dequantize(RandomIntMat(127, 48), 1, 0)
|| test_dequantize(RandomIntMat(127, 48), 48, 48)
|| test_dequantize(RandomIntMat(127, 48), 48, 1)
|| test_dequantize(RandomIntMat(127, 48), 48, 0)
|| test_dequantize(RandomIntMat(15, 24), 1, 24)
|| test_dequantize(RandomIntMat(15, 24), 1, 1)
|| test_dequantize(RandomIntMat(15, 24), 1, 0)
Expand Down Expand Up @@ -90,6 +102,12 @@ static int test_dequantize_2()
|| test_dequantize(RandomIntMat(128), 128, 128)
|| test_dequantize(RandomIntMat(128), 128, 1)
|| test_dequantize(RandomIntMat(128), 128, 0)
|| test_dequantize(RandomIntMat(120), 1, 120)
|| test_dequantize(RandomIntMat(120), 1, 1)
|| test_dequantize(RandomIntMat(120), 1, 0)
|| test_dequantize(RandomIntMat(120), 120, 120)
|| test_dequantize(RandomIntMat(120), 120, 1)
|| test_dequantize(RandomIntMat(120), 120, 0)
|| test_dequantize(RandomIntMat(124), 1, 124)
|| test_dequantize(RandomIntMat(124), 1, 1)
|| test_dequantize(RandomIntMat(124), 1, 0)
Expand Down

0 comments on commit a3bd834

Please sign in to comment.