summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webnn/resources/test_data/logical_not.json
diff options
context:
space:
mode:
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.json421
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