@@ -1517,63 +1517,6 @@ TEST(pooling_forward_gpu, b_fs_yx_fsv4)
1517
1517
} // for (int j = 0; F_array[j]; i++)
1518
1518
}
1519
1519
1520
- TEST (pooling_forward_gpu, fs_b_yx_fsv32_int8)
1521
- {
1522
- auto & engine = get_test_engine ();
1523
-
1524
- auto input_prim = engine.allocate_memory ({ data_types::f32, format::yxfb, { 2 , 32 , 1 , 2 } });
1525
-
1526
- topology topology;
1527
- topology.add (input_layout (" input" , input_prim->get_layout ()));
1528
- topology.add (reorder (" reorder_input" , input_info (" input" ), layout (data_types::i8, format::fs_b_yx_fsv32, { 2 , 32 , 1 , 2 })));
1529
- topology.add (pooling (" avg_pooling" , input_info (" reorder_input" ), pooling_mode::average, { 7 , 7 }, { 2 , 2 }));
1530
- topology.add (reorder (" reorder_after_pooling" , input_info (" avg_pooling" ), layout (data_types::f32, format::fs_b_yx_fsv32, { 2 , 32 , 1 , 1 })));
1531
-
1532
- network network (engine, topology, get_test_default_config (engine));
1533
- set_values (input_prim, { 41 .f , 42 .f , 43 .f , 44 .f , 45 .f , 46 .f , 47 .f , 48 .f ,
1534
- 11 .f , 12 .f , 13 .f , 14 .f , 15 .f , 16 .f , 17 .f , 18 .f ,
1535
- 21 .f , 22 .f , 23 .f , 24 .f , 25 .f , 26 .f , 27 .f , 28 .f ,
1536
- 31 .f , 32 .f , 33 .f , 34 .f , 35 .f , 36 .f , 37 .f , 38 .f ,
1537
-
1538
- 31 .f , 32 .f , 33 .f , 34 .f , 35 .f , 36 .f , 37 .f , 38 .f ,
1539
- 21 .f , 22 .f , 23 .f , 24 .f , 25 .f , 26 .f , 27 .f , 28 .f ,
1540
- 51 .f , 52 .f , 53 .f , 54 .f , 55 .f , 56 .f , 57 .f , 58 .f ,
1541
- 11 .f , 12 .f , 13 .f , 14 .f , 15 .f , 16 .f , 17 .f , 18 .f ,
1542
-
1543
- 41 .f , 42 .f , 43 .f , 44 .f , 45 .f , 46 .f , 47 .f , 48 .f ,
1544
- 11 .f , 12 .f , 13 .f , 14 .f , 15 .f , 16 .f , 17 .f , 18 .f ,
1545
- 21 .f , 22 .f , 23 .f , 24 .f , 25 .f , 26 .f , 27 .f , 28 .f ,
1546
- 31 .f , 32 .f , 33 .f , 34 .f , 35 .f , 36 .f , 37 .f , 38 .f ,
1547
-
1548
- 31 .f , 32 .f , 33 .f , 34 .f , 35 .f , 36 .f , 37 .f , 38 .f ,
1549
- 21 .f , 22 .f , 23 .f , 24 .f , 25 .f , 26 .f , 27 .f , 28 .f ,
1550
- 51 .f , 52 .f , 53 .f , 54 .f , 55 .f , 56 .f , 57 .f , 58 .f ,
1551
- 11 .f , 12 .f , 13 .f , 14 .f , 15 .f , 16 .f , 17 .f , 18 .f });
1552
- network.set_input_data (" input" , input_prim);
1553
-
1554
- auto outputs = network.execute ();
1555
- ASSERT_EQ (outputs.size (), size_t (1 ));
1556
- ASSERT_EQ (outputs.begin ()->first , " reorder_after_pooling" );
1557
-
1558
- auto output_prim = outputs.begin ()->second .get_memory ();
1559
-
1560
- cldnn::mem_lock<float > output_ptr (output_prim, get_test_stream ());
1561
-
1562
- std::vector<float > ref_data = { 41 .f , 43 .f , 45 .f , 47 .f , 11 .f , 13 .f , 15 .f , 17 .f ,
1563
- 21 .f , 23 .f , 25 .f , 27 .f , 31 .f , 33 .f , 35 .f , 37 .f ,
1564
- 31 .f , 33 .f , 35 .f , 37 .f , 21 .f , 23 .f , 25 .f , 27 .f ,
1565
- 51 .f , 53 .f , 55 .f , 57 .f , 11 .f , 13 .f , 15 .f , 17 .f ,
1566
-
1567
- 42 .f , 44 .f , 46 .f , 48 .f , 12 .f , 14 .f , 16 .f , 18 .f ,
1568
- 22 .f , 24 .f , 26 .f , 28 .f , 32 .f , 34 .f , 36 .f , 38 .f ,
1569
- 32 .f , 34 .f , 36 .f , 38 .f , 22 .f , 24 .f , 26 .f , 28 .f ,
1570
- 52 .f , 54 .f , 56 .f , 58 .f , 12 .f , 14 .f , 16 .f , 18 .f };
1571
-
1572
- for (size_t i = 0 ; i < ref_data.size (); i++) {
1573
- ASSERT_EQ (ref_data[i], float (output_ptr[i]));
1574
- }
1575
- }
1576
-
1577
1520
TEST (pooling_forward_gpu, fs_b_yx_fsv32_avg_3x3_input_2x2_pool_1x1_stride_2x2_output)
1578
1521
{
1579
1522
auto & engine = get_test_engine ();
@@ -2254,7 +2197,8 @@ INSTANTIATE_TEST_SUITE_P(
2254
2197
format::bfyx,
2255
2198
format::b_fs_yx_fsv4,
2256
2199
format::b_fs_yx_fsv16,
2257
- format::b_fs_yx_fsv32)),
2200
+ format::b_fs_yx_fsv32,
2201
+ format::fs_b_yx_fsv32)),
2258
2202
testing::internal::DefaultParamName<pooling_random_test_params>);
2259
2203
2260
2204
INSTANTIATE_TEST_SUITE_P (
@@ -2333,40 +2277,6 @@ class pooling_scale_random_test_base : public pooling_random_test_base<InputT, M
2333
2277
VF<output_t > _shift;
2334
2278
};
2335
2279
2336
- using pooling_random_test_int8_uint8 = pooling_random_test;
2337
-
2338
- TEST_P (pooling_random_test_int8_uint8, avg_int8) {
2339
- auto test_case = pooling_random_test_base<int8_t , pooling_mode::average>();
2340
- ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2341
- }
2342
-
2343
- TEST_P (pooling_random_test_int8_uint8, max_int8) {
2344
- auto test_case = pooling_random_test_base<int8_t , pooling_mode::max>();
2345
- ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2346
- }
2347
-
2348
- TEST_P (pooling_random_test_int8_uint8, avg_uint8) {
2349
- auto test_case = pooling_random_test_base<uint8_t , pooling_mode::average>();
2350
- ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2351
- }
2352
-
2353
- TEST_P (pooling_random_test_int8_uint8, max_uint8) {
2354
- auto test_case = pooling_random_test_base<uint8_t , pooling_mode::max>();
2355
- ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2356
- }
2357
-
2358
- INSTANTIATE_TEST_SUITE_P (
2359
- smoke_low_precision,
2360
- pooling_random_test_int8_uint8,
2361
- testing::Combine (testing::Values(1 , 2 ),
2362
- testing::Values(3 , 8 ),
2363
- testing::Values(std::tuple<size_t , size_t , size_t >(12 , 12 , 1 ), std::tuple<size_t, size_t, size_t>(24 , 24 , 1 )),
2364
- testing::Values(std::tuple<size_t , size_t , size_t >(4 , 4 , 1 ), std::tuple<size_t, size_t, size_t>(2 , 2 , 1 )),
2365
- testing::Values(std::tuple<int , int , int >(2 , 2 , 1 )),
2366
- testing::Values(std::tuple<int , int , int >(0 , 0 , 0 )),
2367
- testing::Values(format::fs_b_yx_fsv32)),
2368
- testing::internal::DefaultParamName<pooling_random_test_params>);
2369
-
2370
2280
using pooling_random_test_fp16_fp32 = pooling_random_test;
2371
2281
2372
2282
TEST_P (pooling_random_test_fp16_fp32, avg_fp16) {
0 commit comments