Skip to content

Commit

Permalink
WebNN: Implement logicalAnd, logicalOr, and logicalXor in DirectML
Browse files Browse the repository at this point in the history
This CL also updates incorrect values in test cases.

Bug: 368222740
Change-Id: I09164f48bff3b1796f2d1b62fb7ea6ca275637c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5916907
Reviewed-by: ningxin hu <ningxin.hu@intel.com>
Commit-Queue: Patrick To <patrto@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1368628}
  • Loading branch information
patrto authored and chromium-wpt-export-bot committed Oct 15, 2024
1 parent 6c8a3fe commit 671df7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions webnn/conformance_tests/logical_and.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ const logicalAndTests = [
'expectedOutputs': {
'output': {
'data': [
0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1,
0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1
0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1,
0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1
],
'descriptor': {shape: [2, 2, 2, 3], dataType: 'uint8'}
}
Expand Down
4 changes: 2 additions & 2 deletions webnn/conformance_tests/logical_or.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ const logicalOrTests = [
'expectedOutputs': {
'output': {
'data': [
0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1,
0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1
0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1,
0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1
],
'descriptor': {shape: [2, 2, 2, 3], dataType: 'uint8'}
}
Expand Down
6 changes: 3 additions & 3 deletions webnn/conformance_tests/logical_xor.https.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const logicalXorTests = [
'descriptor': {shape: [], dataType: 'uint8'}
},
'inputB': {
'data': [1],
'data': [0],
'descriptor': {shape: [], dataType: 'uint8'}
}
},
Expand Down Expand Up @@ -370,8 +370,8 @@ const logicalXorTests = [
'expectedOutputs': {
'output': {
'data': [
0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0,
0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0
0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0,
0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0
],
'descriptor': {shape: [2, 2, 2, 3], dataType: 'uint8'}
}
Expand Down

0 comments on commit 671df7f

Please sign in to comment.