From 0b235b27632e96c5f9cf01093d9d4d4ecf2f8447 Mon Sep 17 00:00:00 2001 From: Hariharan Seshadri Date: Thu, 8 Sep 2022 17:57:37 -0700 Subject: [PATCH] Disable QOrderedMatMul with bias tests on Windows (#12901) --- .../test/contrib_ops/qordered_matmul_op_test.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/onnxruntime/test/contrib_ops/qordered_matmul_op_test.cc b/onnxruntime/test/contrib_ops/qordered_matmul_op_test.cc index a6fa1c7e53..482ce66f7c 100644 --- a/onnxruntime/test/contrib_ops/qordered_matmul_op_test.cc +++ b/onnxruntime/test/contrib_ops/qordered_matmul_op_test.cc @@ -122,6 +122,7 @@ TEST(QOrderedTest, MatMul_COL_16x64x32) { false /* add bias */, false /* broadcast batch c */); } +#ifndef _WIN32 TEST(QOrderedTest, MatMul_bias_COL_16x64x32) { std::vector shape_A = {16, 32}; std::vector shape_B = {32, 64}; @@ -130,6 +131,7 @@ TEST(QOrderedTest, MatMul_bias_COL_16x64x32) { 1.0f / 32.0f, 1.0f / 32.0f, 0.0f /*scaleC*/, 2.0f, true /* add bias */, false /* broadcast batch c */); } +#endif // ifndef _WIN32 TEST(QOrderedTest, MatMul_addC_COL_16x64x32) { std::vector shape_A = {16, 32}; @@ -140,6 +142,7 @@ TEST(QOrderedTest, MatMul_addC_COL_16x64x32) { false /* add bias */, false /* broadcast batch c */); } +#ifndef _WIN32 TEST(QOrderedTest, MatMul_bias_addC_COL_16x64x32) { std::vector shape_A = {16, 32}; std::vector shape_B = {32, 64}; @@ -148,7 +151,8 @@ TEST(QOrderedTest, MatMul_bias_addC_COL_16x64x32) { 1.0f / 32.0f, 1.0f / 32.0f, 4.0f /*scaleC*/, 2.0f, true /* add bias */, true /* broadcast batch c */); } - +#endif // ifndef _WIN32 + TEST(QOrderedTest, MatMul_COL_16x64x32_b3_1) { std::vector shape_A = {3, 16, 32}; std::vector shape_B = {1, 32, 64}; @@ -158,6 +162,7 @@ TEST(QOrderedTest, MatMul_COL_16x64x32_b3_1) { false /* add bias */, false /* broadcast batch c */); } +#ifndef _WIN32 TEST(QOrderedTest, MatMul_bias_COL_16x64x32_b2_1) { std::vector shape_A = {2, 16, 32}; std::vector shape_B = {1, 32, 64}; @@ -166,6 +171,7 @@ TEST(QOrderedTest, MatMul_bias_COL_16x64x32_b2_1) { 1.0f / 32.0f, 1.0f / 32.0f, 0.0f /*scaleC*/, 2.0f, true /* add bias */, false /* broadcast batch c */); } +#endif // ifndef _WIN32 TEST(QOrderedTest, MatMul_addC_COL_16x64x32_b2_1) { std::vector shape_A = {2, 16, 32}; @@ -185,6 +191,7 @@ TEST(QOrderedTest, MatMul_addC_broadcastC_COL_16x64x32_b2_1) { false /* add bias */, true /* broadcast batch c */); } +#ifndef _WIN32 TEST(QOrderedTest, MatMul_addC_bias_COL_16x64x32_b2_1) { std::vector shape_A = {2, 16, 32}; std::vector shape_B = {1, 32, 64}; @@ -193,7 +200,9 @@ TEST(QOrderedTest, MatMul_addC_bias_COL_16x64x32_b2_1) { 1.0f / 32.0f, 1.0f / 32.0f, 0.0f /*scaleC*/, 2.0f, true /* add bias */, false /* broadcast batch c */); } +#endif // ifndef _WIN32 +#ifndef _WIN32 TEST(QOrderedTest, MatMul_bias_addC_broadcastC_COL_16x64x32_b2_1) { std::vector shape_A = {2, 16, 32}; std::vector shape_B = {1, 32, 64}; @@ -202,8 +211,9 @@ TEST(QOrderedTest, MatMul_bias_addC_broadcastC_COL_16x64x32_b2_1) { 1.0f / 32.0f, 1.0f / 32.0f, 0.0f /*scaleC*/, 2.0f, true /* add bias */, true /* broadcast batch c */); } +#endif // ifndef _WIN32 -#endif +#endif // USE_CUDA } // namespace test } // namespace onnxruntime