Commit e40f9c50 authored by fenglei.tian's avatar fenglei.tian

add skip gpu test micro for new tests

parent d673953e
...@@ -1458,6 +1458,7 @@ TEST(${BACKEND_NAME}, backwards_reverse_3d_02) ...@@ -1458,6 +1458,7 @@ TEST(${BACKEND_NAME}, backwards_reverse_3d_02)
TEST(${BACKEND_NAME}, backwards_maxpool_n4c1h4w4_kh2kw2_sh1sw1) TEST(${BACKEND_NAME}, backwards_maxpool_n4c1h4w4_kh2kw2_sh1sw1)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto manager = runtime::Manager::get("${BACKEND_NAME}"); auto manager = runtime::Manager::get("${BACKEND_NAME}");
auto backend = manager->allocate_backend(); auto backend = manager->allocate_backend();
Shape shape_a{4, 1, 4, 4}; //in NCHW Shape shape_a{4, 1, 4, 4}; //in NCHW
...@@ -1500,6 +1501,7 @@ TEST(${BACKEND_NAME}, backwards_maxpool_n4c1h4w4_kh2kw2_sh1sw1) ...@@ -1500,6 +1501,7 @@ TEST(${BACKEND_NAME}, backwards_maxpool_n4c1h4w4_kh2kw2_sh1sw1)
TEST(${BACKEND_NAME}, backwards_maxpool_n2c1h5w5_kh3kw3_sh2sw2) TEST(${BACKEND_NAME}, backwards_maxpool_n2c1h5w5_kh3kw3_sh2sw2)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
auto manager = runtime::Manager::get("${BACKEND_NAME}"); auto manager = runtime::Manager::get("${BACKEND_NAME}");
auto backend = manager->allocate_backend(); auto backend = manager->allocate_backend();
...@@ -1539,4 +1541,4 @@ TEST(${BACKEND_NAME}, backwards_maxpool_n2c1h5w5_kh3kw3_sh2sw2) ...@@ -1539,4 +1541,4 @@ TEST(${BACKEND_NAME}, backwards_maxpool_n2c1h5w5_kh3kw3_sh2sw2)
auto cf = backend->make_call_frame(external); auto cf = backend->make_call_frame(external);
cf->tensor_call({input, ep}, {output}); cf->tensor_call({input, ep}, {output});
ASSERT_TRUE(read_vector<float>(output) == expected); ASSERT_TRUE(read_vector<float>(output) == expected);
} }
\ No newline at end of file
...@@ -6856,6 +6856,7 @@ TEST(${BACKEND_NAME}, pad_interior_exterior_4d_2x0x3x2) ...@@ -6856,6 +6856,7 @@ TEST(${BACKEND_NAME}, pad_interior_exterior_4d_2x0x3x2)
// Trivial case with no reduced axes. // Trivial case with no reduced axes.
TEST(${BACKEND_NAME}, product_trivial) TEST(${BACKEND_NAME}, product_trivial)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2}; Shape shape{2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Product>(A, AxisSet{}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Product>(A, AxisSet{}), op::Parameters{A});
...@@ -6877,6 +6878,7 @@ TEST(${BACKEND_NAME}, product_trivial) ...@@ -6877,6 +6878,7 @@ TEST(${BACKEND_NAME}, product_trivial)
// Failure has been reported at 5D for some reason // Failure has been reported at 5D for some reason
TEST(${BACKEND_NAME}, product_trivial_5d) TEST(${BACKEND_NAME}, product_trivial_5d)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2, 2, 2, 2}; Shape shape{2, 2, 2, 2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Product>(A, AxisSet{}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Product>(A, AxisSet{}), op::Parameters{A});
...@@ -6900,6 +6902,7 @@ TEST(${BACKEND_NAME}, product_trivial_5d) ...@@ -6900,6 +6902,7 @@ TEST(${BACKEND_NAME}, product_trivial_5d)
TEST(${BACKEND_NAME}, product_to_scalar) TEST(${BACKEND_NAME}, product_to_scalar)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2}; Shape shape{2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Product>(A, AxisSet{0, 1}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Product>(A, AxisSet{0, 1}), op::Parameters{A});
...@@ -6924,6 +6927,7 @@ TEST(${BACKEND_NAME}, product_to_scalar) ...@@ -6924,6 +6927,7 @@ TEST(${BACKEND_NAME}, product_to_scalar)
TEST(${BACKEND_NAME}, product_matrix_columns) TEST(${BACKEND_NAME}, product_matrix_columns)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 2}; Shape shape_a{3, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{2}; Shape shape_rt{2};
...@@ -6949,6 +6953,7 @@ TEST(${BACKEND_NAME}, product_matrix_columns) ...@@ -6949,6 +6953,7 @@ TEST(${BACKEND_NAME}, product_matrix_columns)
TEST(${BACKEND_NAME}, product_matrix_rows) TEST(${BACKEND_NAME}, product_matrix_rows)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 2}; Shape shape_a{3, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -6974,6 +6979,7 @@ TEST(${BACKEND_NAME}, product_matrix_rows) ...@@ -6974,6 +6979,7 @@ TEST(${BACKEND_NAME}, product_matrix_rows)
TEST(${BACKEND_NAME}, product_matrix_rows_zero) TEST(${BACKEND_NAME}, product_matrix_rows_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 0}; Shape shape_a{3, 0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7000,6 +7006,7 @@ TEST(${BACKEND_NAME}, product_matrix_rows_zero) ...@@ -7000,6 +7006,7 @@ TEST(${BACKEND_NAME}, product_matrix_rows_zero)
TEST(${BACKEND_NAME}, product_matrix_cols_zero) TEST(${BACKEND_NAME}, product_matrix_cols_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
// Now the reduction (g(x:float32[2,2],y:float32[]) = reduce(x,y,f,axes={})). // Now the reduction (g(x:float32[2,2],y:float32[]) = reduce(x,y,f,axes={})).
Shape shape_a{0, 2}; Shape shape_a{0, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
...@@ -7027,6 +7034,7 @@ TEST(${BACKEND_NAME}, product_matrix_cols_zero) ...@@ -7027,6 +7034,7 @@ TEST(${BACKEND_NAME}, product_matrix_cols_zero)
TEST(${BACKEND_NAME}, product_vector_zero) TEST(${BACKEND_NAME}, product_vector_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{0}; Shape shape_a{0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7053,6 +7061,7 @@ TEST(${BACKEND_NAME}, product_vector_zero) ...@@ -7053,6 +7061,7 @@ TEST(${BACKEND_NAME}, product_vector_zero)
TEST(${BACKEND_NAME}, product_matrix_to_scalar_zero_by_zero) TEST(${BACKEND_NAME}, product_matrix_to_scalar_zero_by_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{0, 0}; Shape shape_a{0, 0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7079,6 +7088,7 @@ TEST(${BACKEND_NAME}, product_matrix_to_scalar_zero_by_zero) ...@@ -7079,6 +7088,7 @@ TEST(${BACKEND_NAME}, product_matrix_to_scalar_zero_by_zero)
TEST(${BACKEND_NAME}, product_3d_to_matrix_most_sig) TEST(${BACKEND_NAME}, product_3d_to_matrix_most_sig)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 3}; Shape shape_rt{3, 3};
...@@ -7110,6 +7120,7 @@ TEST(${BACKEND_NAME}, product_3d_to_matrix_most_sig) ...@@ -7110,6 +7120,7 @@ TEST(${BACKEND_NAME}, product_3d_to_matrix_most_sig)
TEST(${BACKEND_NAME}, product_3d_to_matrix_least_sig) TEST(${BACKEND_NAME}, product_3d_to_matrix_least_sig)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 3}; Shape shape_rt{3, 3};
...@@ -7141,6 +7152,7 @@ TEST(${BACKEND_NAME}, product_3d_to_matrix_least_sig) ...@@ -7141,6 +7152,7 @@ TEST(${BACKEND_NAME}, product_3d_to_matrix_least_sig)
TEST(${BACKEND_NAME}, product_3d_to_vector) TEST(${BACKEND_NAME}, product_3d_to_vector)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7166,6 +7178,7 @@ TEST(${BACKEND_NAME}, product_3d_to_vector) ...@@ -7166,6 +7178,7 @@ TEST(${BACKEND_NAME}, product_3d_to_vector)
TEST(${BACKEND_NAME}, product_3d_to_scalar) TEST(${BACKEND_NAME}, product_3d_to_scalar)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7192,6 +7205,7 @@ TEST(${BACKEND_NAME}, product_3d_to_scalar) ...@@ -7192,6 +7205,7 @@ TEST(${BACKEND_NAME}, product_3d_to_scalar)
TEST(${BACKEND_NAME}, product_3d_eliminate_zero_dim) TEST(${BACKEND_NAME}, product_3d_eliminate_zero_dim)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 0, 2}; Shape shape_a{3, 0, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 2}; Shape shape_rt{3, 2};
...@@ -7217,6 +7231,7 @@ TEST(${BACKEND_NAME}, product_3d_eliminate_zero_dim) ...@@ -7217,6 +7231,7 @@ TEST(${BACKEND_NAME}, product_3d_eliminate_zero_dim)
// Trivial case with no reduced axes. // Trivial case with no reduced axes.
TEST(${BACKEND_NAME}, max_trivial) TEST(${BACKEND_NAME}, max_trivial)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2}; Shape shape{2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Max>(A, AxisSet{}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Max>(A, AxisSet{}), op::Parameters{A});
...@@ -7238,6 +7253,7 @@ TEST(${BACKEND_NAME}, max_trivial) ...@@ -7238,6 +7253,7 @@ TEST(${BACKEND_NAME}, max_trivial)
// Failure has been reported at 5D for some reason // Failure has been reported at 5D for some reason
TEST(${BACKEND_NAME}, max_trivial_5d) TEST(${BACKEND_NAME}, max_trivial_5d)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2, 2, 2, 2}; Shape shape{2, 2, 2, 2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Max>(A, AxisSet{}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Max>(A, AxisSet{}), op::Parameters{A});
...@@ -7261,6 +7277,7 @@ TEST(${BACKEND_NAME}, max_trivial_5d) ...@@ -7261,6 +7277,7 @@ TEST(${BACKEND_NAME}, max_trivial_5d)
TEST(${BACKEND_NAME}, max_to_scalar) TEST(${BACKEND_NAME}, max_to_scalar)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2}; Shape shape{2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Max>(A, AxisSet{0, 1}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Max>(A, AxisSet{0, 1}), op::Parameters{A});
...@@ -7285,6 +7302,7 @@ TEST(${BACKEND_NAME}, max_to_scalar) ...@@ -7285,6 +7302,7 @@ TEST(${BACKEND_NAME}, max_to_scalar)
TEST(${BACKEND_NAME}, max_matrix_columns) TEST(${BACKEND_NAME}, max_matrix_columns)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 2}; Shape shape_a{3, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{2}; Shape shape_rt{2};
...@@ -7310,6 +7328,7 @@ TEST(${BACKEND_NAME}, max_matrix_columns) ...@@ -7310,6 +7328,7 @@ TEST(${BACKEND_NAME}, max_matrix_columns)
TEST(${BACKEND_NAME}, max_matrix_rows) TEST(${BACKEND_NAME}, max_matrix_rows)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 2}; Shape shape_a{3, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7335,6 +7354,7 @@ TEST(${BACKEND_NAME}, max_matrix_rows) ...@@ -7335,6 +7354,7 @@ TEST(${BACKEND_NAME}, max_matrix_rows)
TEST(${BACKEND_NAME}, max_matrix_rows_zero) TEST(${BACKEND_NAME}, max_matrix_rows_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 0}; Shape shape_a{3, 0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7364,6 +7384,7 @@ TEST(${BACKEND_NAME}, max_matrix_rows_zero) ...@@ -7364,6 +7384,7 @@ TEST(${BACKEND_NAME}, max_matrix_rows_zero)
TEST(${BACKEND_NAME}, max_matrix_cols_zero) TEST(${BACKEND_NAME}, max_matrix_cols_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
// Now the reduction (g(x:float32[2,2],y:float32[]) = reduce(x,y,f,axes={})). // Now the reduction (g(x:float32[2,2],y:float32[]) = reduce(x,y,f,axes={})).
Shape shape_a{0, 2}; Shape shape_a{0, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
...@@ -7393,6 +7414,7 @@ TEST(${BACKEND_NAME}, max_matrix_cols_zero) ...@@ -7393,6 +7414,7 @@ TEST(${BACKEND_NAME}, max_matrix_cols_zero)
TEST(${BACKEND_NAME}, max_vector_zero) TEST(${BACKEND_NAME}, max_vector_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{0}; Shape shape_a{0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7419,6 +7441,7 @@ TEST(${BACKEND_NAME}, max_vector_zero) ...@@ -7419,6 +7441,7 @@ TEST(${BACKEND_NAME}, max_vector_zero)
TEST(${BACKEND_NAME}, max_matrix_to_scalar_zero_by_zero) TEST(${BACKEND_NAME}, max_matrix_to_scalar_zero_by_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{0, 0}; Shape shape_a{0, 0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7445,6 +7468,7 @@ TEST(${BACKEND_NAME}, max_matrix_to_scalar_zero_by_zero) ...@@ -7445,6 +7468,7 @@ TEST(${BACKEND_NAME}, max_matrix_to_scalar_zero_by_zero)
TEST(${BACKEND_NAME}, max_3d_to_matrix_most_sig) TEST(${BACKEND_NAME}, max_3d_to_matrix_most_sig)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 3}; Shape shape_rt{3, 3};
...@@ -7467,6 +7491,7 @@ TEST(${BACKEND_NAME}, max_3d_to_matrix_most_sig) ...@@ -7467,6 +7491,7 @@ TEST(${BACKEND_NAME}, max_3d_to_matrix_most_sig)
TEST(${BACKEND_NAME}, max_3d_to_matrix_least_sig) TEST(${BACKEND_NAME}, max_3d_to_matrix_least_sig)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 3}; Shape shape_rt{3, 3};
...@@ -7489,6 +7514,7 @@ TEST(${BACKEND_NAME}, max_3d_to_matrix_least_sig) ...@@ -7489,6 +7514,7 @@ TEST(${BACKEND_NAME}, max_3d_to_matrix_least_sig)
TEST(${BACKEND_NAME}, max_3d_to_vector) TEST(${BACKEND_NAME}, max_3d_to_vector)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7511,6 +7537,7 @@ TEST(${BACKEND_NAME}, max_3d_to_vector) ...@@ -7511,6 +7537,7 @@ TEST(${BACKEND_NAME}, max_3d_to_vector)
TEST(${BACKEND_NAME}, max_3d_to_scalar) TEST(${BACKEND_NAME}, max_3d_to_scalar)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7533,6 +7560,7 @@ TEST(${BACKEND_NAME}, max_3d_to_scalar) ...@@ -7533,6 +7560,7 @@ TEST(${BACKEND_NAME}, max_3d_to_scalar)
TEST(${BACKEND_NAME}, max_3d_eliminate_zero_dim) TEST(${BACKEND_NAME}, max_3d_eliminate_zero_dim)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 0, 2}; Shape shape_a{3, 0, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 2}; Shape shape_rt{3, 2};
...@@ -7560,6 +7588,7 @@ TEST(${BACKEND_NAME}, max_3d_eliminate_zero_dim) ...@@ -7560,6 +7588,7 @@ TEST(${BACKEND_NAME}, max_3d_eliminate_zero_dim)
// Trivial case with no reduced axes. // Trivial case with no reduced axes.
TEST(${BACKEND_NAME}, min_trivial) TEST(${BACKEND_NAME}, min_trivial)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2}; Shape shape{2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Min>(A, AxisSet{}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Min>(A, AxisSet{}), op::Parameters{A});
...@@ -7581,6 +7610,7 @@ TEST(${BACKEND_NAME}, min_trivial) ...@@ -7581,6 +7610,7 @@ TEST(${BACKEND_NAME}, min_trivial)
// Failure has been reported at 5D for some reason // Failure has been reported at 5D for some reason
TEST(${BACKEND_NAME}, min_trivial_5d) TEST(${BACKEND_NAME}, min_trivial_5d)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2, 2, 2, 2}; Shape shape{2, 2, 2, 2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Min>(A, AxisSet{}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Min>(A, AxisSet{}), op::Parameters{A});
...@@ -7604,6 +7634,7 @@ TEST(${BACKEND_NAME}, min_trivial_5d) ...@@ -7604,6 +7634,7 @@ TEST(${BACKEND_NAME}, min_trivial_5d)
TEST(${BACKEND_NAME}, min_to_scalar) TEST(${BACKEND_NAME}, min_to_scalar)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape{2, 2}; Shape shape{2, 2};
auto A = make_shared<op::Parameter>(element::f32, shape); auto A = make_shared<op::Parameter>(element::f32, shape);
auto f = make_shared<Function>(make_shared<op::Min>(A, AxisSet{0, 1}), op::Parameters{A}); auto f = make_shared<Function>(make_shared<op::Min>(A, AxisSet{0, 1}), op::Parameters{A});
...@@ -7628,6 +7659,7 @@ TEST(${BACKEND_NAME}, min_to_scalar) ...@@ -7628,6 +7659,7 @@ TEST(${BACKEND_NAME}, min_to_scalar)
TEST(${BACKEND_NAME}, min_matrix_columns) TEST(${BACKEND_NAME}, min_matrix_columns)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 2}; Shape shape_a{3, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{2}; Shape shape_rt{2};
...@@ -7653,6 +7685,7 @@ TEST(${BACKEND_NAME}, min_matrix_columns) ...@@ -7653,6 +7685,7 @@ TEST(${BACKEND_NAME}, min_matrix_columns)
TEST(${BACKEND_NAME}, min_matrix_rows) TEST(${BACKEND_NAME}, min_matrix_rows)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 2}; Shape shape_a{3, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7678,6 +7711,7 @@ TEST(${BACKEND_NAME}, min_matrix_rows) ...@@ -7678,6 +7711,7 @@ TEST(${BACKEND_NAME}, min_matrix_rows)
TEST(${BACKEND_NAME}, min_matrix_rows_zero) TEST(${BACKEND_NAME}, min_matrix_rows_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 0}; Shape shape_a{3, 0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7707,6 +7741,7 @@ TEST(${BACKEND_NAME}, min_matrix_rows_zero) ...@@ -7707,6 +7741,7 @@ TEST(${BACKEND_NAME}, min_matrix_rows_zero)
TEST(${BACKEND_NAME}, min_matrix_cols_zero) TEST(${BACKEND_NAME}, min_matrix_cols_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
// Now the reduction (g(x:float32[2,2],y:float32[]) = reduce(x,y,f,axes={})). // Now the reduction (g(x:float32[2,2],y:float32[]) = reduce(x,y,f,axes={})).
Shape shape_a{0, 2}; Shape shape_a{0, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
...@@ -7736,6 +7771,7 @@ TEST(${BACKEND_NAME}, min_matrix_cols_zero) ...@@ -7736,6 +7771,7 @@ TEST(${BACKEND_NAME}, min_matrix_cols_zero)
TEST(${BACKEND_NAME}, min_vector_zero) TEST(${BACKEND_NAME}, min_vector_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{0}; Shape shape_a{0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7762,6 +7798,7 @@ TEST(${BACKEND_NAME}, min_vector_zero) ...@@ -7762,6 +7798,7 @@ TEST(${BACKEND_NAME}, min_vector_zero)
TEST(${BACKEND_NAME}, min_matrix_to_scalar_zero_by_zero) TEST(${BACKEND_NAME}, min_matrix_to_scalar_zero_by_zero)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{0, 0}; Shape shape_a{0, 0};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7788,6 +7825,7 @@ TEST(${BACKEND_NAME}, min_matrix_to_scalar_zero_by_zero) ...@@ -7788,6 +7825,7 @@ TEST(${BACKEND_NAME}, min_matrix_to_scalar_zero_by_zero)
TEST(${BACKEND_NAME}, min_3d_to_matrix_most_sig) TEST(${BACKEND_NAME}, min_3d_to_matrix_most_sig)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 3}; Shape shape_rt{3, 3};
...@@ -7810,6 +7848,7 @@ TEST(${BACKEND_NAME}, min_3d_to_matrix_most_sig) ...@@ -7810,6 +7848,7 @@ TEST(${BACKEND_NAME}, min_3d_to_matrix_most_sig)
TEST(${BACKEND_NAME}, min_3d_to_matrix_least_sig) TEST(${BACKEND_NAME}, min_3d_to_matrix_least_sig)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 3}; Shape shape_rt{3, 3};
...@@ -7832,6 +7871,7 @@ TEST(${BACKEND_NAME}, min_3d_to_matrix_least_sig) ...@@ -7832,6 +7871,7 @@ TEST(${BACKEND_NAME}, min_3d_to_matrix_least_sig)
TEST(${BACKEND_NAME}, min_3d_to_vector) TEST(${BACKEND_NAME}, min_3d_to_vector)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3}; Shape shape_rt{3};
...@@ -7854,6 +7894,7 @@ TEST(${BACKEND_NAME}, min_3d_to_vector) ...@@ -7854,6 +7894,7 @@ TEST(${BACKEND_NAME}, min_3d_to_vector)
TEST(${BACKEND_NAME}, min_3d_to_scalar) TEST(${BACKEND_NAME}, min_3d_to_scalar)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 3, 3}; Shape shape_a{3, 3, 3};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{}; Shape shape_rt{};
...@@ -7876,6 +7917,7 @@ TEST(${BACKEND_NAME}, min_3d_to_scalar) ...@@ -7876,6 +7917,7 @@ TEST(${BACKEND_NAME}, min_3d_to_scalar)
TEST(${BACKEND_NAME}, min_3d_eliminate_zero_dim) TEST(${BACKEND_NAME}, min_3d_eliminate_zero_dim)
{ {
SKIP_TEST_FOR("GPU", "${BACKEND_NAME}");
Shape shape_a{3, 0, 2}; Shape shape_a{3, 0, 2};
auto A = make_shared<op::Parameter>(element::f32, shape_a); auto A = make_shared<op::Parameter>(element::f32, shape_a);
Shape shape_rt{3, 2}; Shape shape_rt{3, 2};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment