Skip to content

Commit 2604c93

Browse files
authored
Update conv_test.cc
1 parent 260a4a4 commit 2604c93

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

onnxruntime/test/providers/qnn/conv_test.cc

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,10 +1519,9 @@ TEST_F(QnnHTPBackendTests, Conv3D_U16S8S32_PerChannel2) {
15191519
// Expected val: 87.354057312011719
15201520
// QNN QDQ val: 0 (err 87.354057312011719)
15211521
// CPU QDQ val: 87.3583984375 (err 0.00434112548828125)
1522-
// Issue fixed in 2.30
1523-
TEST_F(QnnHTPBackendTests, ConvU16S16S32_DynamicBias) {
1522+
TEST_F(QnnHTPBackendTests, DISABLED_ConvU16S16S32_DynamicBias) {
15241523
TestInputDef<float> input_def({1, 2, 5, 5}, false, GetFloatDataInRange(-10.0f, 10.0f, 50));
1525-
TestInputDef<float> weight_def({1, 2, 3, 3}, true, GetFloatDataInRange(-1.0f, 5.0f, 18));
1524+
TestInputDef<float> weight_def({1, 2, 3, 3}, false, GetFloatDataInRange(-1.0f, 5.0f, 18));
15261525
RunHTPConvOpTest<uint16_t, int16_t>("Conv",
15271526
input_def, // Input
15281527
weight_def.OverrideValueRange(-5.0f, 5.0f), // Weights (symmetric quant range)
@@ -1538,10 +1537,9 @@ TEST_F(QnnHTPBackendTests, ConvU16S16S32_DynamicBias) {
15381537

15391538
// Tests 16-bit QDQ Conv with dynamic weights and bias (uses QNN's DepthwiseConv2d)
15401539
// TODO(adrianlizarraga): FAIL: Failed to finalize QNN graph. Error code 1002
1541-
// Issue fixed in 2.30
1542-
TEST_F(QnnHTPBackendTests, DepthwiseConvU16S16S32_DynamicBias) {
1540+
TEST_F(QnnHTPBackendTests, DISABLED_DepthwiseConvU16S16S32_DynamicBias) {
15431541
TestInputDef<float> input_def({1, 1, 5, 5}, false, GetFloatDataInRange(-10.0f, 10.0f, 25));
1544-
TestInputDef<float> weight_def({1, 1, 3, 3}, true, GetFloatDataInRange(-1.0f, 5.0f, 9));
1542+
TestInputDef<float> weight_def({1, 1, 3, 3}, false, GetFloatDataInRange(-1.0f, 5.0f, 9));
15451543
RunHTPConvOpTest<uint16_t, int16_t>("Conv",
15461544
input_def, // Input
15471545
weight_def.OverrideValueRange(-5.0f, 5.0f), // Weights (symmetric quant range)
@@ -1561,10 +1559,9 @@ TEST_F(QnnHTPBackendTests, DepthwiseConvU16S16S32_DynamicBias) {
15611559
// Expected val: 85.354057312011719
15621560
// QNN QDQ val: 0 (err 85.354057312011719)
15631561
// CPU QDQ val: 85.358139038085938 (err 0.00408172607421875)
1564-
// Issue fixed in 2.30
1565-
TEST_F(QnnHTPBackendTests, ConvU16S16S32_NoBias) {
1562+
TEST_F(QnnHTPBackendTests, DISABLED_ConvU16S16S32_NoBias) {
15661563
TestInputDef<float> input_def({1, 2, 5, 5}, false, GetFloatDataInRange(-10.0f, 10.0f, 50));
1567-
TestInputDef<float> weight_def({1, 2, 3, 3}, true, GetFloatDataInRange(-1.0f, 5.0f, 18));
1564+
TestInputDef<float> weight_def({1, 2, 3, 3}, false, GetFloatDataInRange(-1.0f, 5.0f, 18));
15681565
RunHTPConvOpTest<uint16_t, int16_t>("Conv",
15691566
input_def, // Input
15701567
weight_def.OverrideValueRange(-5.0f, 5.0f), // Weights (symmetric quant range)
@@ -1580,13 +1577,12 @@ TEST_F(QnnHTPBackendTests, ConvU16S16S32_NoBias) {
15801577

15811578
// Tests 16-bit QDQ Conv with dynamic weights and no bias (uses QNN's DepthWiseConv2d)
15821579
// TODO(adrianlizarraga): FAIL: Failed to finalize QNN graph. Error code 1002
1583-
// Issue fixed in 2.30
1584-
TEST_F(QnnHTPBackendTests, DepthwiseConvU16S16S32_NoBias) {
1580+
TEST_F(QnnHTPBackendTests, DISABLED_DepthwiseConvU16S16S32_NoBias) {
15851581
std::vector<float> input_data = GetFloatDataInRange(-10.0f, 10.0f, 25);
15861582
std::vector<float> weight_data = GetFloatDataInRange(-10.0f, 10.0f, 9);
15871583
RunHTPConvOpTest<uint16_t, int16_t>("Conv",
15881584
TestInputDef<float>({1, 1, 5, 5}, false, input_data), // Input
1589-
TestInputDef<float>({1, 1, 3, 3}, true, weight_data), // Weights
1585+
TestInputDef<float>({1, 1, 3, 3}, false, weight_data), // Weights
15901586
TestInputDef<float>(), // Bias
15911587
{1, 1}, // Strides
15921588
{0, 0, 0, 0}, // Pads

0 commit comments

Comments
 (0)