@@ -2276,6 +2276,40 @@ class pooling_scale_random_test_base : public pooling_random_test_base<InputT, M
2276
2276
VF<output_t > _shift;
2277
2277
};
2278
2278
2279
+ using pooling_random_test_int8_uint8 = pooling_random_test;
2280
+
2281
+ TEST_P (pooling_random_test_int8_uint8, avg_int8) {
2282
+ auto test_case = pooling_random_test_base<int8_t , pooling_mode::average>();
2283
+ ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2284
+ }
2285
+
2286
+ TEST_P (pooling_random_test_int8_uint8, max_int8) {
2287
+ auto test_case = pooling_random_test_base<int8_t , pooling_mode::max>();
2288
+ ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2289
+ }
2290
+
2291
+ TEST_P (pooling_random_test_int8_uint8, avg_uint8) {
2292
+ auto test_case = pooling_random_test_base<uint8_t , pooling_mode::average>();
2293
+ ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2294
+ }
2295
+
2296
+ TEST_P (pooling_random_test_int8_uint8, max_uint8) {
2297
+ auto test_case = pooling_random_test_base<uint8_t , pooling_mode::max>();
2298
+ ASSERT_NO_FATAL_FAILURE (test_case.run_random (GetParam (), false ));
2299
+ }
2300
+
2301
+ INSTANTIATE_TEST_SUITE_P (
2302
+ smoke_low_precision,
2303
+ pooling_random_test_int8_uint8,
2304
+ testing::Combine (testing::Values(1 , 2 ),
2305
+ testing::Values(3 , 8 ),
2306
+ testing::Values(std::tuple<size_t , size_t , size_t >(12 , 12 , 1 )),
2307
+ testing::Values(std::tuple<size_t , size_t , size_t >(4 , 4 , 1 )),
2308
+ testing::Values(std::tuple<int , int , int >(2 , 2 , 1 )),
2309
+ testing::Values(std::tuple<int , int , int >(0 , 0 , 0 )),
2310
+ testing::Values(format::fs_b_yx_fsv32)),
2311
+ testing::internal::DefaultParamName<pooling_random_test_params>);
2312
+
2279
2313
using pooling_random_test_fp16_fp32 = pooling_random_test;
2280
2314
2281
2315
TEST_P (pooling_random_test_fp16_fp32, avg_fp16) {
0 commit comments