@@ -1521,20 +1521,30 @@ TEST(pooling_forward_gpu, fs_b_yx_fsv32_int8)
1521
1521
{
1522
1522
auto & engine = get_test_engine ();
1523
1523
1524
- auto input_prim = engine.allocate_memory ({ data_types::f32, format::yxfb, { 1 , 32 , 1 , 2 } });
1524
+ auto input_prim = engine.allocate_memory ({ data_types::f32, format::yxfb, { 2 , 32 , 1 , 2 } });
1525
1525
1526
1526
topology topology;
1527
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, { 1 , 32 , 1 , 2 })));
1528
+ topology.add (reorder (" reorder_input" , input_info (" input" ), layout (data_types::i8, format::fs_b_yx_fsv32, { 2 , 32 , 1 , 2 })));
1529
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, { 1 , 32 , 1 , 1 })));
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
1531
1532
1532
network network (engine, topology, get_test_default_config (engine));
1533
1533
set_values (input_prim, { 41 .f , 42 .f , 43 .f , 44 .f , 45 .f , 46 .f , 47 .f , 48 .f ,
1534
1534
11 .f , 12 .f , 13 .f , 14 .f , 15 .f , 16 .f , 17 .f , 18 .f ,
1535
1535
21 .f , 22 .f , 23 .f , 24 .f , 25 .f , 26 .f , 27 .f , 28 .f ,
1536
1536
31 .f , 32 .f , 33 .f , 34 .f , 35 .f , 36 .f , 37 .f , 38 .f ,
1537
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
+
1538
1548
31 .f , 32 .f , 33 .f , 34 .f , 35 .f , 36 .f , 37 .f , 38 .f ,
1539
1549
21 .f , 22 .f , 23 .f , 24 .f , 25 .f , 26 .f , 27 .f , 28 .f ,
1540
1550
51 .f , 52 .f , 53 .f , 54 .f , 55 .f , 56 .f , 57 .f , 58 .f ,
@@ -1549,10 +1559,15 @@ TEST(pooling_forward_gpu, fs_b_yx_fsv32_int8)
1549
1559
1550
1560
cldnn::mem_lock<float > output_ptr (output_prim, get_test_stream ());
1551
1561
1552
- std::vector<float > ref_data = { 36 .f , 37 .f , 38 .f , 39 .f , 40 .f , 41 .f , 42 .f , 43 .f ,
1553
- 16 .f , 17 .f , 18 .f , 19 .f , 20 .f , 21 .f , 22 .f , 23 .f ,
1554
- 36 .f , 37 .f , 38 .f , 39 .f , 40 .f , 41 .f , 42 .f , 43 .f ,
1555
- 21 .f , 22 .f , 23 .f , 24 .f , 25 .f , 26 .f , 27 .f , 28 .f };
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 };
1556
1571
1557
1572
for (size_t i = 0 ; i < ref_data.size (); i++) {
1558
1573
ASSERT_EQ (ref_data[i], float (output_ptr[i]));
0 commit comments