@@ -374,17 +374,16 @@ TEST_F(QnnHTPBackendTests, ResizeU8_2xLinearAsymmetric) {
374
374
}
375
375
376
376
// Test 2x QDQ Resize mode: "nearest", coordinate_transformation_mode: "half_pixel", nearest_mode: "round_prefer_floor"
377
- // Maps to QNN's Resize operator.
378
- // UPDATE: "round_prefer_floor" no longer supported in QNN SDK 2.21 (supported in QNN SDK 2.19)
379
- TEST_F (QnnHTPBackendTests, ResizeU8_2xNearestHalfPixelRoundPreferFloor_Unsupported) {
377
+ // Maps to QNN's ResizeNearestNeighbor operator.
378
+ TEST_F (QnnHTPBackendTests, ResizeU8_2xNearestHalfPixelRoundPreferFloor) {
380
379
std::vector<float > input_data = GetFloatDataInRange (-10 .0f , 10 .0f , 48 );
381
380
RunQDQResizeOpTest<uint8_t >(TestInputDef<float >({1 , 3 , 4 , 4 }, false , input_data),
382
381
{1 , 3 , 8 , 8 }, " nearest" , " half_pixel" , " round_prefer_floor" ,
383
- ExpectedEPNodeAssignment::None); // No longer supported as of QNN SDK 2.21
382
+ ExpectedEPNodeAssignment::All);
384
383
}
385
384
386
385
// Test 2x QDQ Resize mode: "nearest", coordinate_transformation_mode: "half_pixel", nearest_mode: "round_prefer_Ceil"
387
- // Maps to QNN's ResizeNearesetNeighbor operator.
386
+ // Maps to QNN's ResizeNearestNeighbor operator.
388
387
TEST_F (QnnHTPBackendTests, ResizeU8_2xNearestHalfPixelRoundPreferCeil) {
389
388
std::vector<float > input_data = GetFloatDataInRange (-10 .0f , 10 .0f , 48 );
390
389
RunQDQResizeOpTest<uint8_t >(TestInputDef<float >({1 , 3 , 4 , 4 }, false , input_data),
@@ -393,7 +392,7 @@ TEST_F(QnnHTPBackendTests, ResizeU8_2xNearestHalfPixelRoundPreferCeil) {
393
392
}
394
393
395
394
// Test 2x QDQ Resize mode: "nearest", coordinate_transformation_mode: "align_corners", nearest_mode: "round_prefer_ceil"
396
- // Maps to QNN's Resize operator.
395
+ // Maps to QNN's ResizeNearestNeighbor operator.
397
396
// UPDATE: "round_prefer_ceil" is supported as of QNN SDK 2.21 if using "align_corners". (Unsupported in QNN SDK 2.19).
398
397
TEST_F (QnnHTPBackendTests, ResizeU8_2xNearestAlignCornersRoundPreferCeil) {
399
398
std::vector<float > input_data = GetFloatDataInRange (-10 .0f , 10 .0f , 48 );
@@ -402,8 +401,9 @@ TEST_F(QnnHTPBackendTests, ResizeU8_2xNearestAlignCornersRoundPreferCeil) {
402
401
ExpectedEPNodeAssignment::All);
403
402
}
404
403
405
- // Test that the nearest_mode "ceil" is not supported on the HTP backend.
406
- TEST_F (QnnHTPBackendTests, ResizeU8_NearestModeCeil_Unsupported) {
404
+ // Test 2x QDQ Resize mode: "nearest", coordinate_transformation_mode: "asymmetric", nearest_mode: "ceil"
405
+ // Maps to QNN's ResizeNearestNeighbor operator.
406
+ TEST_F (QnnHTPBackendTests, ResizeU8_2xNearestAsymmetricCeil_Unsupported) {
407
407
std::vector<float > input_data = GetFloatDataInRange (-10 .0f , 10 .0f , 48 );
408
408
RunQDQResizeOpTest<uint8_t >(TestInputDef<float >({1 , 3 , 4 , 4 }, false , input_data),
409
409
{1 , 3 , 8 , 8 }, " nearest" , " asymmetric" , " ceil" ,
@@ -420,7 +420,7 @@ TEST_F(QnnHTPBackendTests, ResizeU8_3xNearestAsymmetricFloor) {
420
420
}
421
421
422
422
// Test 2x QDQ Resize mode: "nearest", coordinate_transformation_mode: "asymmetric", nearest_mode: "round_prefer_floor"
423
- // Maps to QNN's Resize operator.
423
+ // Maps to QNN's ResizeNearestNeighbor operator.
424
424
// UPDATE: "round_prefer_floor" no longer supported in QNN SDK 2.21 (supported in QNN SDK 2.19)
425
425
TEST_F (QnnHTPBackendTests, ResizeU8_2xNearestAsymmetricRoundPreferFloor_Unsupported) {
426
426
std::vector<float > input_data = GetFloatDataInRange (-10 .0f , 10 .0f , 8 );
0 commit comments