Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QNN EP] Disable flaky test QnnCPUBackendTests.MatMulOp_Broadcast #18033

Merged
merged 3 commits into from
Oct 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
disable QnnCPUBackendTests.MatMulOp_Broadcast because it failed rando…
…mly on Linux
  • Loading branch information
HectorSVC committed Oct 19, 2023
commit a6892e7f3a88a1a91eab5448844e48ecd8b5a117
11 changes: 5 additions & 6 deletions onnxruntime/test/providers/qnn/matmul_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,11 @@
}

// Test MatMul broadcasting
// Note slight inaccuracy in CPU backend:
// Expected: contains 896 values, where each value and its corresponding value in 16-byte object
// <80-03 00-00 00-00 00-00 40-00 34-DD F7-01 00-00> are an almost-equal pair
// Actual: 16-byte object <80-03 00-00 00-00 00-00 40-00 23-DD F7-01 00-00>,
// where the value pair (73.68116, 73.680809) at index #80 don't match, which is -0.000350952 from 73.6812
TEST_F(QnnCPUBackendTests, MatMulOp_Broadcast) {
// Failed randomly on Linux
// Value of: expected_tensor.DataAsSpan<float>()
// Expected: contains 896 values, where each value and its corresponding value in 16-byte object <80-03 00-00 00-00 00-00 40-B8 53-08 CC-7F 00-00> are an almost-equal pair

Check warning on line 117 in onnxruntime/test/providers/qnn/matmul_test.cpp

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/test/providers/qnn/matmul_test.cpp#L117

Lines should be <= 120 characters long [whitespace/line_length] [2]
Raw output
onnxruntime/test/providers/qnn/matmul_test.cpp:117:  Lines should be <= 120 characters long  [whitespace/line_length] [2]
// Actual: 16-byte object <80-03 00-00 00-00 00-00 C0-B7 43-08 CC-7F 00-00>, where the value pair (-5.19657087, 0) at index #29 don't match, which is 5.19657 from -5.19657

Check warning on line 118 in onnxruntime/test/providers/qnn/matmul_test.cpp

View workflow job for this annotation

GitHub Actions / cpplint

[cpplint] onnxruntime/test/providers/qnn/matmul_test.cpp#L118

Lines should be <= 120 characters long [whitespace/line_length] [2]
Raw output
onnxruntime/test/providers/qnn/matmul_test.cpp:118:  Lines should be <= 120 characters long  [whitespace/line_length] [2]
TEST_F(QnnCPUBackendTests, DISABLED_MatMulOp_Broadcast) {
// Create two matrices with element values in the range [-10.0, 10.0].
std::vector<float> input_a = GetFloatDataInRange(-10.0f, 10.0f, 28 * 64);
std::vector<float> input_b = GetFloatDataInRange(-10.0f, 10.0f, 64 * 32);
Expand Down
Loading