diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/webnn/resources/test_data/logical_not.json | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/webnn/resources/test_data/logical_not.json')
-rw-r--r-- | testing/web-platform/tests/webnn/resources/test_data/logical_not.json | 421 |
1 files changed, 421 insertions, 0 deletions
diff --git a/testing/web-platform/tests/webnn/resources/test_data/logical_not.json b/testing/web-platform/tests/webnn/resources/test_data/logical_not.json new file mode 100644 index 0000000000..3a37652a13 --- /dev/null +++ b/testing/web-platform/tests/webnn/resources/test_data/logical_not.json @@ -0,0 +1,421 @@ +{ + "tests": [ + { + "name": "logicalNot uint8 0D scalar", + "inputs": { + "x": { + "shape": [], + "data": [ + 1 + ], + "type": "uint8" + } + }, + "expected": { + "name": "output", + "shape": [], + "data": [ + 0 + ], + "type": "uint8" + } + }, + { + "name": "logicalNot uint8 1D constant tensor", + "inputs": { + "x": { + "shape": [24], + "data": [ + 204, + 130, + 90, + 0, + 147, + 42, + 10, + 18, + 13, + 235, + 0, + 233, + 53, + 83, + 9, + 254, + 69, + 56, + 219, + 109, + 171, + 0, + 228, + 135 + ], + "type": "uint8", + "constant": true + } + }, + "expected": { + "name": "output", + "shape": [24], + "data": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "type": "uint8" + } + }, + { + "name": "logicalNot uint8 1D tensor", + "inputs": { + "x": { + "shape": [24], + "data": [ + 204, + 130, + 90, + 0, + 147, + 42, + 10, + 18, + 13, + 235, + 0, + 233, + 53, + 83, + 9, + 254, + 69, + 56, + 219, + 109, + 171, + 0, + 228, + 135 + ], + "type": "uint8" + } + }, + "expected": { + "name": "output", + "shape": [24], + "data": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "type": "uint8" + } + }, + { + "name": "logicalNot uint8 2D tensor", + "inputs": { + "x": { + "shape": [4, 6], + "data": [ + 204, + 130, + 90, + 0, + 147, + 42, + 10, + 18, + 13, + 235, + 0, + 233, + 53, + 83, + 9, + 254, + 69, + 56, + 219, + 109, + 171, + 0, + 228, + 135 + ], + "type": "uint8" + } + }, + "expected": { + "name": "output", + "shape": [4, 6], + "data": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "type": "uint8" + } + }, + { + "name": "logicalNot uint8 3D tensor", + "inputs": { + "x": { + "shape": [2, 3, 4], + "data": [ + 204, + 130, + 90, + 0, + 147, + 42, + 10, + 18, + 13, + 235, + 0, + 233, + 53, + 83, + 9, + 254, + 69, + 56, + 219, + 109, + 171, + 0, + 228, + 135 + ], + "type": "uint8" + } + }, + "expected": { + "name": "output", + "shape": [2, 3, 4], + "data": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "type": "uint8" + } + }, + { + "name": "logicalNot uint8 4D tensor", + "inputs": { + "x": { + "shape": [2, 2, 2, 3], + "data": [ + 204, + 130, + 90, + 0, + 147, + 42, + 10, + 18, + 13, + 235, + 0, + 233, + 53, + 83, + 9, + 254, + 69, + 56, + 219, + 109, + 171, + 0, + 228, + 135 + ], + "type": "uint8" + } + }, + "expected": { + "name": "output", + "shape": [2, 2, 2, 3], + "data": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "type": "uint8" + } + }, + { + "name": "logicalNot uint8 5D tensor", + "inputs": { + "x": { + "shape": [2, 1, 4, 1, 3], + "data": [ + 204, + 130, + 90, + 0, + 147, + 42, + 10, + 18, + 13, + 235, + 0, + 233, + 53, + 83, + 9, + 254, + 69, + 56, + 219, + 109, + 171, + 0, + 228, + 135 + ], + "type": "uint8" + } + }, + "expected": { + "name": "output", + "shape": [2, 1, 4, 1, 3], + "data": [ + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 0, + 0 + ], + "type": "uint8" + } + } + ] +}
\ No newline at end of file |