Source code

Revision control

Copy as Markdown

Other Tools

{
"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"
}
}
]
}