diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-11-16 14:39:55 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-11-16 14:46:02 +0000 |
commit | 874bb4fe493b2958a21e9a84c22828e82d4ff167 (patch) | |
tree | 4e4a0e31a9ba5c912373ba3a0419c8c84b03688e /operators/tensor/fully_connected | |
parent | 7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c (diff) | |
download | conformance_tests-874bb4fe493b2958a21e9a84c22828e82d4ff167.tar.gz |
Updating conformance files for BF16 support
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Iabe3a47a30eaea83f29b160ae2227e57ec22e96d
Diffstat (limited to 'operators/tensor/fully_connected')
31 files changed, 4584 insertions, 2511 deletions
diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/input-0.json deleted file mode 100644 index 342b47b02..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/input-0.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "type": "float16", - "data": [ - [ - 0.09912109375, - 0.84375, - 0.90283203125, - 0.9794921875, - 0.80224609375, - 0.779296875, - 0.642578125, - 0.77880859375, - 0.134521484375, - 0.5361328125, - 0.51416015625 - ], - [ - 0.857421875, - 0.462890625, - 0.385009765625, - 0.6396484375, - 0.266357421875, - 0.1397705078125, - 0.477783203125, - 0.4169921875, - 0.2325439453125, - 0.367431640625, - 0.366455078125 - ] - ] -}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/test.json deleted file mode 100644 index 0a4a2ecf6..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/test.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - version: { - _major: 0, - _minor: 41, - _patch: 0, - _draft: true - }, - blocks: [ - { - name: "main", - operators: [ - { - op: "CONST", - attribute_type: "NONE", - inputs: [ - - ], - outputs: [ - "const-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ - - ], - outputs: [ - "const-2" - ] - }, - { - op: "FULLY_CONNECTED", - attribute_type: "FullyConnectedAttribute", - attribute: { - input_zp: -25, - weight_zp: 0, - accum_dtype: "FP32" - }, - inputs: [ - "input-0", - "const-1", - "const-2" - ], - outputs: [ - "result-0" - ] - } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 11 - ], - type: "FP16" - }, - { - name: "const-1", - shape: [ - 4, - 11 - ], - type: "FP16", - data: [ - 61, - 53, - 18, - 54, - 124, - 57, - 192, - 52, - 151, - 59, - 85, - 59, - 178, - 55, - 65, - 53, - 73, - 56, - 202, - 58, - 56, - 57, - 111, - 58, - 67, - 56, - 16, - 57, - 156, - 52, - 225, - 57, - 122, - 50, - 143, - 57, - 227, - 58, - 58, - 48, - 234, - 56, - 22, - 46, - 206, - 57, - 104, - 45, - 125, - 59, - 102, - 48, - 172, - 59, - 104, - 58, - 192, - 56, - 67, - 58, - 92, - 58, - 145, - 59, - 14, - 52, - 184, - 56, - 21, - 46, - 238, - 56, - 123, - 49, - 133, - 56, - 148, - 56, - 117, - 55, - 46, - 56, - 29, - 58, - 101, - 58, - 224, - 55 - ] - }, - { - name: "const-2", - shape: [ - 4 - ], - type: "FP32", - data: [ - 245, - 126, - 25, - 63, - 127, - 101, - 110, - 63, - 226, - 54, - 245, - 61, - 255, - 211, - 239, - 61 - ] - }, - { - name: "result-0", - shape: [ - 2, - 4 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" - ] - } - ] -} diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/desc.json index b8879370e..b8879370e 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x11_f16xf16_accf32/desc.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/desc.json diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/input-0.json new file mode 100644 index 000000000..d92dbe005 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/input-0.json @@ -0,0 +1,33 @@ +{ + "type": "int32", + "data": [ + [ + -25263, + -3958, + 11036, + 10120, + -1895, + 23270, + 4275, + -27578, + 17366, + 4889, + 8828, + 4284 + ], + [ + 3511, + -26833, + 3880, + 19327, + -12849, + 6739, + -30749, + -9995, + -4148, + 31636, + -18705, + -14645 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/test.json new file mode 100644 index 000000000..4a6b82d0f --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_InputZeroPointNotZero_2x12_i16xi8_acci48/test.json @@ -0,0 +1,275 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: -93, + weight_zp: -66, + accum_dtype: "INT48" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 12 + ], + type: "INT16" + }, + { + name: "const-1", + shape: [ + 10, + 12 + ], + type: "INT8", + data: [ + 232, + 126, + 90, + 136, + 187, + 82, + 142, + 91, + 200, + 106, + 203, + 239, + 41, + 160, + 14, + 1, + 72, + 127, + 42, + 232, + 232, + 234, + 80, + 210, + 170, + 213, + 133, + 155, + 151, + 69, + 56, + 50, + 246, + 55, + 169, + 102, + 0, + 112, + 166, + 255, + 50, + 254, + 242, + 170, + 225, + 189, + 205, + 47, + 33, + 27, + 220, + 117, + 150, + 215, + 158, + 214, + 118, + 221, + 104, + 254, + 51, + 245, + 196, + 67, + 120, + 195, + 71, + 194, + 55, + 73, + 243, + 60, + 197, + 148, + 152, + 242, + 103, + 160, + 244, + 52, + 179, + 56, + 206, + 79, + 20, + 12, + 173, + 246, + 91, + 132, + 66, + 254, + 56, + 41, + 238, + 207, + 32, + 163, + 21, + 152, + 38, + 32, + 149, + 65, + 234, + 73, + 138, + 173, + 254, + 176, + 212, + 41, + 164, + 45, + 154, + 172, + 22, + 75, + 171, + 204 + ] + }, + { + name: "const-2", + shape: [ + 10 + ], + type: "INT48", + data: [ + 91, + 253, + 63, + 108, + 192, + 20, + 113, + 114, + 162, + 117, + 204, + 216, + 201, + 156, + 214, + 60, + 70, + 23, + 116, + 75, + 120, + 121, + 214, + 133, + 200, + 38, + 248, + 34, + 100, + 117, + 12, + 107, + 240, + 60, + 120, + 251, + 148, + 119, + 250, + 85, + 97, + 72, + 160, + 16, + 20, + 203, + 45, + 149, + 157, + 70, + 239, + 163, + 149, + 252, + 206, + 171, + 60, + 249, + 158, + 253 + ] + }, + { + name: "result-0", + shape: [ + 2, + 10 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x12_i8xi4_acci32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/desc.json index 0f8c18b9a..0f8c18b9a 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x12_i8xi4_acci32/desc.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/desc.json diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/input-0.json new file mode 100644 index 000000000..24c68369b --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/input-0.json @@ -0,0 +1,149 @@ +{ + "type": "float32", + "data": [ + [ + 0.255859375, + 0.5859375, + 0.408203125, + 0.21875, + 0.8125, + 0.859375, + 0.1669921875, + 0.007476806640625, + 0.3359375, + 0.796875 + ], + [ + 0.8359375, + 0.1376953125, + 0.7734375, + 0.115234375, + 0.388671875, + 0.99609375, + 0.1923828125, + 0.1533203125, + 0.421875, + 0.6171875 + ], + [ + 0.9296875, + 0.98046875, + 0.0693359375, + 0.1376953125, + 0.7890625, + 0.26953125, + 0.8828125, + 0.66015625, + 0.11181640625, + 0.83203125 + ], + [ + 0.17578125, + 0.421875, + 0.55078125, + 0.5, + 0.68359375, + 0.65234375, + 0.98828125, + 0.99609375, + 0.515625, + 0.0947265625 + ], + [ + 0.7265625, + 0.9765625, + 0.31640625, + 0.4609375, + 0.423828125, + 0.05126953125, + 0.671875, + 0.3515625, + 0.78515625, + 0.83203125 + ], + [ + 0.8203125, + 0.416015625, + 0.3203125, + 0.74609375, + 0.80078125, + 0.490234375, + 0.890625, + 0.1435546875, + 0.87890625, + 0.095703125 + ], + [ + 0.1533203125, + 0.53125, + 0.0673828125, + 0.052734375, + 0.000514984130859375, + 0.435546875, + 0.7734375, + 0.03466796875, + 0.6484375, + 0.8203125 + ], + [ + 0.16796875, + 0.146484375, + 0.859375, + 0.8203125, + 0.53515625, + 0.81640625, + 0.09228515625, + 0.392578125, + 0.734375, + 0.255859375 + ], + [ + 0.75, + 0.50390625, + 0.75, + 0.462890625, + 0.3671875, + 0.21875, + 0.2080078125, + 0.75, + 0.11865234375, + 0.0859375 + ], + [ + 0.17578125, + 0.1748046875, + 0.8203125, + 0.3984375, + 0.98828125, + 0.13671875, + 0.65234375, + 0.447265625, + 0.392578125, + 0.875 + ], + [ + 0.97265625, + 0.87109375, + 0.19140625, + 0.220703125, + 0.65234375, + 0.2890625, + 0.734375, + 0.56640625, + 0.55078125, + 0.828125 + ], + [ + 0.70703125, + 0.0264892578125, + 0.04931640625, + 0.59765625, + 0.484375, + 0.259765625, + 0.41796875, + 0.7578125, + 0.82421875, + 0.55859375 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/test.json new file mode 100644 index 000000000..4f1d788e0 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x10_bf16xbf16_accf32/test.json @@ -0,0 +1,403 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: 0, + weight_zp: -118, + accum_dtype: "FP32" + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 10 + ], + type: "BF16" + }, + { + name: "const-1", + shape: [ + 7, + 10 + ], + type: "BF16", + data: [ + 0, + 0, + 197, + 62, + 0, + 0, + 138, + 62, + 0, + 0, + 5, + 63, + 0, + 0, + 161, + 62, + 0, + 0, + 16, + 63, + 0, + 0, + 45, + 63, + 0, + 0, + 135, + 61, + 0, + 0, + 139, + 58, + 0, + 0, + 89, + 62, + 0, + 0, + 100, + 63, + 0, + 0, + 37, + 63, + 0, + 0, + 48, + 62, + 0, + 0, + 99, + 63, + 0, + 0, + 240, + 62, + 0, + 0, + 243, + 62, + 0, + 0, + 111, + 63, + 0, + 0, + 115, + 61, + 0, + 0, + 92, + 62, + 0, + 0, + 21, + 63, + 0, + 0, + 72, + 62, + 0, + 0, + 45, + 63, + 0, + 0, + 91, + 62, + 0, + 0, + 203, + 61, + 0, + 0, + 83, + 62, + 0, + 0, + 216, + 62, + 0, + 0, + 52, + 62, + 0, + 0, + 9, + 62, + 0, + 0, + 92, + 63, + 0, + 0, + 164, + 62, + 0, + 0, + 184, + 62, + 0, + 0, + 98, + 61, + 0, + 0, + 182, + 62, + 0, + 0, + 135, + 62, + 0, + 0, + 28, + 63, + 0, + 0, + 82, + 62, + 0, + 0, + 99, + 63, + 0, + 0, + 109, + 63, + 0, + 0, + 204, + 61, + 0, + 0, + 219, + 61, + 0, + 0, + 236, + 61, + 0, + 0, + 30, + 63, + 0, + 0, + 249, + 61, + 0, + 0, + 90, + 63, + 0, + 0, + 65, + 63, + 0, + 0, + 81, + 63, + 0, + 0, + 6, + 63, + 0, + 0, + 127, + 63, + 0, + 0, + 52, + 61, + 0, + 0, + 205, + 62, + 0, + 0, + 165, + 62, + 0, + 0, + 114, + 63, + 0, + 0, + 19, + 63, + 0, + 0, + 78, + 63, + 0, + 0, + 46, + 62, + 0, + 0, + 122, + 63, + 0, + 0, + 255, + 62, + 0, + 0, + 252, + 62, + 0, + 0, + 120, + 63, + 0, + 0, + 194, + 62, + 0, + 0, + 203, + 62, + 0, + 0, + 21, + 63, + 0, + 0, + 3, + 62, + 0, + 0, + 164, + 62, + 0, + 0, + 69, + 62, + 0, + 0, + 211, + 61, + 0, + 0, + 93, + 63, + 0, + 0, + 22, + 63, + 0, + 0, + 183, + 62, + 0, + 0, + 209, + 62, + 0, + 0, + 220, + 62 + ] + }, + { + name: "const-2", + shape: [ + 7 + ], + type: "FP32", + data: [ + 17, + 22, + 34, + 63, + 194, + 64, + 109, + 63, + 165, + 202, + 110, + 63, + 163, + 113, + 200, + 62, + 23, + 149, + 168, + 62, + 145, + 239, + 230, + 62, + 35, + 100, + 17, + 63 + ] + }, + { + name: "result-0", + shape: [ + 12, + 7 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x12_i8xi4_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x12_i8xi4_acci32/input-0.json deleted file mode 100644 index 35253dce8..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x12_i8xi4_acci32/input-0.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - -4, - -84, - 59, - -48, - -111, - 62, - 103, - -125, - -17, - 83, - 52, - 91 - ], - [ - -22, - -33, - 53, - -89, - -67, - 25, - 43, - -98, - 2, - -35, - 0, - 117 - ], - [ - -109, - 126, - -13, - 69, - -20, - -49, - 69, - 48, - -92, - 52, - 64, - -29 - ], - [ - 108, - 36, - -43, - -126, - 44, - -75, - 65, - 6, - -9, - -87, - 54, - -86 - ], - [ - -22, - 86, - 107, - 125, - 117, - 14, - -77, - 86, - 77, - 125, - 38, - -92 - ], - [ - 0, - -14, - 87, - -28, - -44, - -108, - 85, - 65, - -118, - -17, - -6, - -8 - ], - [ - 107, - -90, - -50, - -82, - -66, - 104, - 112, - -117, - 33, - -69, - -79, - -54 - ], - [ - -79, - -3, - 126, - 22, - 57, - -2, - -125, - -107, - -60, - -66, - 87, - 87 - ], - [ - 90, - 35, - 14, - 38, - -24, - 43, - 75, - 67, - 29, - -114, - 57, - -35 - ], - [ - 62, - 10, - 97, - -42, - 110, - 88, - -44, - -5, - 8, - 68, - 48, - 90 - ], - [ - -34, - 1, - -18, - 104, - -50, - 22, - -98, - 89, - -30, - -41, - 21, - -1 - ], - [ - 89, - 8, - 4, - -102, - -123, - -26, - 127, - 106, - 33, - 33, - -28, - -83 - ] - ] -}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/desc.json index bf7c1974a..bf7c1974a 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/desc.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/desc.json diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/input-0.json new file mode 100644 index 000000000..8d57ea999 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/input-0.json @@ -0,0 +1,173 @@ +{ + "type": "int32", + "data": [ + [ + 28366, + 25631, + 31991, + 2757, + 2539, + -1730, + 1445, + 6070, + 2641, + -17285, + 9182, + -10681 + ], + [ + -28257, + 32111, + -13339, + 3713, + 7329, + -20867, + -17386, + -1796, + 7163, + 31987, + 26260, + 31906 + ], + [ + 17593, + 16450, + 2205, + -8249, + -14492, + 14552, + -5793, + 29298, + -27136, + 2381, + -23261, + -5854 + ], + [ + 32674, + -17758, + 27315, + 27615, + 7703, + 29023, + 8464, + 25078, + -14378, + -13199, + -7112, + 26268 + ], + [ + -19329, + 32020, + 29513, + 243, + 20653, + -28065, + -13521, + -9403, + -9008, + -24539, + -32043, + -6800 + ], + [ + -15213, + 29766, + -15381, + 19572, + -22697, + 31072, + 27223, + -29532, + -31251, + 25366, + 3974, + 11673 + ], + [ + -5420, + -27672, + -6533, + 19109, + -22903, + -10292, + 19211, + 4375, + -11528, + 10085, + 12082, + 12865 + ], + [ + -12070, + 26723, + 26769, + 7849, + -17865, + -8725, + 21774, + 20622, + 15959, + -949, + 24255, + -10596 + ], + [ + 31899, + 28753, + 5096, + 32155, + 15068, + -14566, + 4622, + -15014, + 25841, + 29085, + 7663, + -32610 + ], + [ + 22685, + -17108, + -15429, + -30582, + -29820, + 27800, + -26292, + 2248, + 10000, + 8336, + 21978, + 21366 + ], + [ + -16895, + 12831, + 5916, + -18535, + 1657, + 13363, + 10415, + 5110, + -17664, + 19453, + -18213, + -4165 + ], + [ + 18320, + 26611, + -29590, + 23758, + 12713, + -21740, + -28081, + -20028, + -26007, + -11999, + -16852, + -25227 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/test.json new file mode 100644 index 000000000..607e1c104 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_12x12_i16xi8_acci48/test.json @@ -0,0 +1,276 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "FULLY_CONNECTED", + attribute_type: "FullyConnectedAttribute", + attribute: { + input_zp: 0, + weight_zp: 121, + accum_dtype: "INT48" + }, + inputs: [ + "input-0", + "const-1", + "const-2", + "eiDummyInput" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 12 + ], + type: "INT16" + }, + { + name: "const-1", + shape: [ + 10, + 12 + ], + type: "INT8", + data: [ + 215, + 82, + 124, + 92, + 244, + 38, + 237, + 18, + 69, + 220, + 197, + 94, + 24, + 4, + 51, + 128, + 91, + 86, + 159, + 200, + 39, + 77, + 129, + 169, + 255, + 158, + 220, + 4, + 80, + 184, + 58, + 196, + 49, + 178, + 171, + 71, + 207, + 109, + 201, + 182, + 177, + 221, + 235, + 180, + 236, + 47, + 217, + 129, + 75, + 134, + 48, + 184, + 75, + 2, + 78, + 219, + 184, + 147, + 114, + 93, + 38, + 89, + 76, + 140, + 109, + 119, + 80, + 37, + 15, + 231, + 250, + 186, + 12, + 210, + 95, + 140, + 144, + 91, + 227, + 15, + 200, + 185, + 242, + 161, + 26, + 162, + 69, + 229, + 130, + 246, + 238, + 142, + 202, + 201, + 60, + 68, + 198, + 110, + 187, + 6, + 172, + 167, + 0, + 190, + 141, + 123, + 50, + 45, + 98, + 58, + 178, + 102, + 254, + 91, + 97, + 129, + 90, + 148, + 72, + 42 + ] + }, + { + name: "const-2", + shape: [ + 10 + ], + type: "INT48", + data: [ + 31, + 238, + 124, + 141, + 224, + 239, + 252, + 94, + 106, + 73, + 183, + 123, + 69, + 142, + 155, + 48, + 247, + 189, + 178, + 220, + 237, + 236, + 34, + 162, + 231, + 153, + 40, + 87, + 199, + 233, + 38, + 213, + 189, + 208, + 178, + 166, + 29, + 150, + 153, + 244, + 132, + 248, + 118, + 125, + 74, + 170, + 128, + 30, + 100, + 94, + 67, + 22, + 36, + 229, + 179, + 77, + 245, + 221, + 182, + 192 + ] + }, + { + name: "result-0", + shape: [ + 12, + 10 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/input-0.json deleted file mode 100644 index 94d80dd7c..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/input-0.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - -27426, - 5788, - 21857, - -22322, - 11378, - 16143, - 16922, - -18454, - 10486, - 3926, - -5262, - -715, - 30443 - ], - [ - -30543, - 8022, - 4458, - 1657, - 25323, - 3702, - 21290, - 17276, - 20624, - 7148, - -31641, - -27948, - 1240 - ], - [ - -14582, - -16539, - 866, - -1843, - -21947, - -2811, - 23316, - -23213, - 18127, - 19343, - 16813, - -22661, - -2120 - ] - ] -}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/test.json deleted file mode 100644 index c7ae5e352..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputList_3x13_i16xi8_acci48/test.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - version: { - _major: 0, - _minor: 41, - _patch: 0, - _draft: true - }, - blocks: [ - { - name: "main", - operators: [ - { - op: "CONST", - attribute_type: "NONE", - inputs: [ - - ], - outputs: [ - "const-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ - - ], - outputs: [ - "const-2" - ] - }, - { - op: "FULLY_CONNECTED", - attribute_type: "FullyConnectedAttribute", - attribute: { - input_zp: 0, - weight_zp: 127, - accum_dtype: "INT48" - }, - inputs: [ - "input-0", - "const-1", - "const-2", - "eiDummyInput" - ], - outputs: [ - "result-0" - ] - } - ], - tensors: [ - { - name: "input-0", - shape: [ - 3, - 13 - ], - type: "INT16" - }, - { - name: "const-1", - shape: [ - 3, - 13 - ], - type: "INT8", - data: [ - 108, - 202, - 255, - 86, - 20, - 218, - 158, - 14, - 254, - 202, - 208, - 123, - 30, - 53, - 143, - 118, - 208, - 117, - 114, - 181, - 212, - 59, - 0, - 247, - 231, - 33, - 42, - 247, - 19, - 142, - 225, - 46, - 65, - 252, - 44, - 162, - 29, - 39, - 13 - ] - }, - { - name: "const-2", - shape: [ - 3 - ], - type: "INT48", - data: [ - 67, - 232, - 80, - 183, - 102, - 96, - 207, - 242, - 113, - 195, - 103, - 133, - 238, - 18, - 226, - 220, - 193, - 235 - ] - }, - { - name: "result-0", - shape: [ - 3, - 3 - ], - type: "INT48" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" - ] - } - ] -} diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_10x11_i48xi48_acci32/desc.json index 992afc22b..992afc22b 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/desc.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_10x11_i48xi48_acci32/desc.json diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_10x11_i48xi48_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_10x11_i48xi48_acci32/input-0.json new file mode 100644 index 000000000..f04b8bbc1 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_10x11_i48xi48_acci32/input-0.json @@ -0,0 +1,135 @@ +{ + "type": "int64", + "data": [ + [ + -87439404035284, + 86104516034051, + -59325831407486, + -71771953630858, + 55074014496089, + -22636411548319, + -44008506775912, + 16904043649020, + 44896274938298, + -105722749966820, + 111269860628271 + ], + [ + -35925460684774, + -85746877971728, + -104307617268038, + 112346519074843, + -122842270915923, + 58734606298369, + -134992572903995, + 106615414855258, + 115518837751886, + -65502615004968, + -123246878529943 + ], + [ + -129701036084892, + 128931265268226, + 39784301432025, + 127380107704129, + -5524214255314, + 85041730319458, + 126267198697444, + -70052817384548, + -115493303995668, + -61709525655593, + 13511787971555 + ], + [ + 55014283747452, + 133890330601715, + 80144671472945, + -116112132305948, + 118379944267165, + 97095541230264, + -80170313690680, + 110428539632786, + -76793689781560, + 6892775094704, + 75724479966234 + ], + [ + -113778223012462, + 58369263056611, + 4999029156346, + 2707745877020, + 33426558177363, + -119429610015090, + -104911720355240, + -91029645874413, + -98057310632636, + -14296106349800, + 28197346439074 + ], + [ + -103069457762213, + 68934999497594, + 98130391672842, + -113535684443555, + -93368956595109, + -36783866351800, + 44203825135719, + -116690581375209, + -42981026296605, + 138159045135337, + 5688670537710 + ], + [ + -91964177939364, + 31415044361832, + -40404527675946, + 109689820456613, + 126826778843377, + -74514020391902, + 117901306575164, + 77630824034514, + -96934008094446, + 91815654102857, + -90697349906822 + ], + [ + -138006824389879, + 78227938154688, + -43308442526433, + 118683478987227, + -16075614197134, + 31086765863404, + 69193862065481, + 96940607488122, + -90795438233791, + -83283936338985, + 109166408812083 + ], + [ + -58556201362078, + 38632744238425, + -120783128044642, + 47221413467823, + -88323457226813, + 83827312788048, + 68109640521074, + 24774706578854, + -98374761969911, + -66086593507797, + -128863469915347 + ], + [ + -52064934455055, + -33588826302816, + -9785324683119, + 139826048911458, + 63415553977254, + -30138575456772, + 97299397128497, + -37582507257957, + -38720421271152, + -122808128818804, + 66203579402735 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x12_i8xi8_acci32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_10x11_i48xi48_acci32/test.json index 1fc814d9d..3b2cf40bc 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x12_i8xi8_acci32/test.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_10x11_i48xi48_acci32/test.json @@ -33,8 +33,8 @@ op: "FULLY_CONNECTED", attribute_type: "FullyConnectedAttribute", attribute: { - input_zp: -85, - weight_zp: -59, + input_zp: 0, + weight_zp: 0, accum_dtype: "INT32" }, inputs: [ @@ -43,7 +43,7 @@ "const-2" ], outputs: [ - + "result-0" ] } ], @@ -51,195 +51,179 @@ { name: "input-0", shape: [ - 12, - 12 + 10, + 11 ], - type: "INT8" + type: "INT48" }, { name: "const-1", shape: [ - 10, - 12 + 2, + 11 ], - type: "INT8", + type: "INT48", data: [ - 238, - 164, - 239, - 176, - 89, - 220, - 15, - 186, - 85, - 63, 51, - 88, - 223, - 115, - 37, - 152, - 135, - 65, - 0, - 111, - 150, - 53, - 13, - 146, - 79, - 144, - 168, - 107, - 229, - 84, - 11, - 250, + 236, + 105, + 196, + 203, 179, - 160, - 136, - 135, - 128, - 115, - 193, - 97, - 206, - 2, - 246, - 84, - 89, - 159, - 234, - 97, - 149, - 81, - 211, - 51, - 206, - 8, - 17, - 188, - 38, - 152, - 128, 43, - 10, - 23, - 191, - 139, - 66, - 201, - 214, - 95, - 106, + 103, + 42, + 249, + 49, + 188, + 159, 219, - 229, + 98, + 6, + 166, + 216, + 5, + 30, + 13, + 86, + 106, + 82, + 105, + 40, + 128, + 223, + 82, + 92, + 64, + 138, + 180, + 215, + 8, + 13, + 140, 121, - 217, + 197, + 99, + 243, + 108, + 254, + 46, + 35, + 171, + 93, + 237, + 18, 16, + 45, + 163, + 216, + 26, 162, - 95, - 172, - 208, - 44, - 92, - 18, - 90, - 12, - 249, 162, - 221, - 155, - 195, - 240, - 112, + 145, + 222, + 226, + 109, + 222, + 167, + 253, + 38, 116, + 5, + 117, + 175, + 207, + 247, + 1, + 246, 19, - 235, - 217, - 103, - 222, - 119, + 243, + 85, + 155, + 106, + 135, + 234, + 90, + 29, + 167, + 106, + 97, + 165, + 169, + 200, + 197, + 97, + 176, + 162, + 188, + 93, + 206, + 255, 244, + 144, 156, - 231, - 108, - 227, - 56, - 126, - 152, - 98, - 58, - 40, - 254, - 47, - 163, - 109, - 188, - 167, - 53, - 147, - 209, - 190, + 203, + 221, + 70, + 75, + 127, + 191, + 177, 115, - 192 + 61, + 3, + 145, + 203, + 64, + 148, + 238, + 71, + 171, + 136, + 147, + 204, + 51, + 86, + 136, + 107, + 47, + 159, + 244, + 90, + 99, + 195, + 226, + 245, + 94, + 148 ] }, { name: "const-2", shape: [ - 10 + 2 ], - type: "INT32", + type: "INT48", data: [ - 158, - 228, - 249, - 81, - 170, - 186, - 175, - 20, - 73, - 187, - 209, - 13, - 223, - 203, - 211, - 47, - 19, - 92, - 51, - 32, - 202, - 185, - 87, - 194, - 1, - 91, - 64, - 107, - 222, - 211, - 81, - 137, - 44, - 60, - 16, - 210, + 105, + 115, 123, - 199, + 253, 224, - 205 + 180, + 182, + 54, + 218, + 86, + 211, + 104 ] }, { name: "result-0", shape: [ - 12, - 10 + 10, + 2 ], type: "INT32" } diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/input-0.json deleted file mode 100644 index 37c0c11ab..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/input-0.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - -2, - 4 - ], - [ - -3, - 6 - ], - [ - -2, - 5 - ], - [ - 0, - 5 - ], - [ - 0, - 3 - ], - [ - -2, - -4 - ], - [ - -6, - 0 - ] - ] -}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x12_i8xi8_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x12_i8xi8_acci32/input-0.json deleted file mode 100644 index bed12f41c..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x12_i8xi8_acci32/input-0.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - -127, - 106, - -101, - 35, - -15, - 89, - 15, - 98, - 50, - 83, - 15, - -108 - ], - [ - 34, - -31, - -99, - -17, - -16, - 126, - 53, - 71, - -45, - -18, - -63, - 3 - ], - [ - -58, - -50, - -31, - 114, - -128, - 93, - 103, - -64, - -76, - -62, - 91, - -90 - ], - [ - -114, - -88, - -57, - 46, - 11, - -4, - -92, - 66, - 124, - -30, - 15, - -52 - ], - [ - 78, - 19, - -57, - -49, - -80, - 113, - 88, - -19, - -72, - -77, - -30, - -107 - ], - [ - 61, - -106, - -69, - -27, - 39, - -19, - 116, - -33, - 9, - -6, - -59, - 28 - ], - [ - 112, - -80, - 106, - 83, - 31, - 59, - 64, - -41, - 64, - -16, - -15, - 107 - ], - [ - -61, - -108, - -111, - -24, - -116, - 109, - -115, - 73, - -67, - 58, - -100, - 114 - ], - [ - -116, - -37, - 21, - 33, - -41, - -116, - 127, - 94, - 42, - -43, - 112, - -83 - ], - [ - -112, - 75, - -61, - 64, - 72, - -94, - 30, - -13, - -36, - -8, - 87, - -94 - ], - [ - 0, - 57, - 106, - 14, - 12, - -83, - 22, - 120, - -49, - -3, - -108, - -56 - ], - [ - -125, - 97, - -55, - 111, - 89, - -86, - -42, - -15, - 85, - 118, - 125, - -9 - ] - ] -}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x12_i8xi8_acci32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/desc.json index 2b74f86d0..2b74f86d0 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x12_i8xi8_acci32/desc.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/desc.json diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/input-0.json new file mode 100644 index 000000000..9fb3ef133 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/input-0.json @@ -0,0 +1,137 @@ +{ + "type": "int32", + "data": [ + [ + -23, + -125, + 12, + -33, + 86, + -22, + 28, + 84, + 21 + ], + [ + -29, + -35, + -106, + -78, + -97, + -73, + -98, + 47, + 26 + ], + [ + 73, + 7, + -51, + -65, + -105, + -80, + 0, + 104, + -35 + ], + [ + 22, + -61, + 87, + -109, + -61, + 125, + -7, + 70, + -63 + ], + [ + 83, + -88, + -19, + -29, + 107, + -128, + 117, + 99, + -48 + ], + [ + -13, + 62, + -97, + -59, + -9, + 78, + 94, + 0, + 117 + ], + [ + 119, + -128, + 20, + 121, + -61, + -46, + -48, + 52, + -18 + ], + [ + 64, + -36, + 104, + -62, + -24, + 91, + 68, + -33, + 47 + ], + [ + -12, + -45, + -54, + 83, + 79, + 100, + -27, + 17, + -105 + ], + [ + 81, + -85, + 31, + 94, + 74, + 81, + 30, + 115, + 49 + ], + [ + 39, + -119, + 35, + -104, + -29, + -23, + -24, + 74, + 49 + ], + [ + -112, + -32, + -125, + 80, + -73, + -20, + 92, + 63, + 99 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x12_i8xi4_acci32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/test.json index 6623a201c..c0c8a7dc5 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WeightZeroPointNotZero_12x12_i8xi4_acci32/test.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputList_12x9_i8xi8_acci32/test.json @@ -33,8 +33,8 @@ op: "FULLY_CONNECTED", attribute_type: "FullyConnectedAttribute", attribute: { - input_zp: 16, - weight_zp: -43, + input_zp: 35, + weight_zp: 93, accum_dtype: "INT32" }, inputs: [ @@ -43,7 +43,8 @@ "const-2" ], outputs: [ - "result-0" + "result-0", + "eiDummyOutput" ] } ], @@ -52,144 +53,125 @@ name: "input-0", shape: [ 12, - 12 + 9 ], type: "INT8" }, { name: "const-1", shape: [ - 11, - 12 + 7, + 9 ], - type: "INT4", + type: "INT8", data: [ - 233, - 189, - 156, - 98, - 243, - 223, - 27, - 145, + 215, + 203, + 254, + 46, + 99, + 52, + 101, + 128, + 95, 223, - 59, - 32, - 115, - 37, - 6, - 71, - 98, - 48, - 125, - 66, - 111, - 170, - 48, - 245, - 18, - 39, - 127, - 122, - 219, - 69, - 71, - 226, - 169, - 157, - 64, - 7, - 118, - 245, - 125, - 252, - 74, - 162, - 28, - 81, + 167, + 166, + 227, + 216, + 146, + 195, + 254, + 147, + 200, + 124, + 110, + 0, + 244, + 165, 108, - 95, - 156, + 188, + 171, + 137, + 100, + 204, + 235, + 144, + 201, + 191, + 126, + 239, + 183, + 43, + 188, + 85, + 109, + 142, + 249, + 191, + 90, + 162, 233, - 151, - 174, - 54, - 52, - 66, - 89, - 68, - 94, - 158, - 198, - 42, - 92, + 217, + 248, + 173, 159, - 7, - 60, - 144, - 244, - 99, - 50 + 188, + 46, + 106, + 119, + 36, + 130, + 93, + 106, + 11, + 13, + 81, + 217 ] }, { name: "const-2", shape: [ - 11 + 7 ], type: "INT32", data: [ - 72, - 193, - 48, - 193, - 178, - 45, 215, - 188, - 247, - 139, - 61, - 234, - 54, - 221, - 79, - 90, - 195, - 130, - 49, - 6, - 93, - 150, - 24, + 31, + 133, 217, - 250, - 142, + 144, + 105, + 246, + 62, + 60, + 165, 148, - 71, - 222, - 203, - 116, - 90, - 56, - 109, + 190, + 5, + 153, + 0, + 84, + 238, + 33, + 126, 12, - 103, - 52, - 146, - 135, - 204, - 239, - 251, - 170, - 53 + 160, + 7, + 47, + 206, + 141, + 78, + 48, + 113 ] }, { name: "result-0", shape: [ 12, - 11 + 7 ], type: "INT32" } diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/input-0.json deleted file mode 100644 index 93270f40b..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/input-0.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - 104, - 83 - ], - [ - -35, - 106 - ], - [ - 98, - -89 - ], - [ - 34, - 84 - ], - [ - -96, - -121 - ], - [ - 66, - -100 - ], - [ - -46, - -23 - ], - [ - 92, - 43 - ], - [ - -57, - -3 - ], - [ - -7, - -75 - ], - [ - -12, - 33 - ] - ] -}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/test.json deleted file mode 100644 index 85da79e55..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/test.json +++ /dev/null @@ -1,125 +0,0 @@ -{ - version: { - _major: 0, - _minor: 41, - _patch: 0, - _draft: true - }, - blocks: [ - { - name: "main", - operators: [ - { - op: "CONST", - attribute_type: "NONE", - inputs: [ - - ], - outputs: [ - "const-1" - ] - }, - { - op: "CONST", - attribute_type: "NONE", - inputs: [ - - ], - outputs: [ - "const-2" - ] - }, - { - op: "FULLY_CONNECTED", - attribute_type: "FullyConnectedAttribute", - attribute: { - input_zp: 31, - weight_zp: -3, - accum_dtype: "FP32" - }, - inputs: [ - "input-0", - "const-1", - "const-2" - ], - outputs: [ - "result-0" - ] - } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 2 - ], - type: "INT8" - }, - { - name: "const-1", - shape: [ - 5, - 2 - ], - type: "INT8", - data: [ - 161, - 94, - 47, - 75, - 6, - 203, - 57, - 102, - 170, - 226 - ] - }, - { - name: "const-2", - shape: [ - 5 - ], - type: "INT32", - data: [ - 36, - 199, - 44, - 110, - 109, - 45, - 21, - 102, - 251, - 83, - 230, - 92, - 14, - 183, - 123, - 154, - 214, - 61, - 195, - 160 - ] - }, - { - name: "result-0", - shape: [ - 11, - 5 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" - ] - } - ] -} diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_13x13_i8xi8_accf16/desc.json index 199bfa93c..199bfa93c 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_11x2_i8xi8_accf32/desc.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_13x13_i8xi8_accf16/desc.json diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_13x13_i8xi8_accf16/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_13x13_i8xi8_accf16/input-0.json new file mode 100644 index 000000000..f8dbcedf7 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_13x13_i8xi8_accf16/input-0.json @@ -0,0 +1,200 @@ +{ + "type": "int32", + "data": [ + [ + 77, + 124, + -109, + -63, + -88, + 60, + -17, + -126, + -5, + 11, + -76, + -47, + -52 + ], + [ + 7, + -88, + -8, + 10, + 7, + -6, + 59, + 48, + -5, + 33, + -105, + -59, + -70 + ], + [ + 66, + -23, + -90, + 24, + 33, + 91, + 30, + 109, + -68, + -4, + -78, + -20, + -101 + ], + [ + -34, + 30, + -47, + -35, + 21, + 127, + -79, + 34, + 114, + -126, + -28, + -33, + 120 + ], + [ + -125, + 122, + 32, + -121, + 106, + 71, + 62, + -54, + -61, + 76, + -83, + -12, + 96 + ], + [ + 117, + -98, + 66, + 53, + 90, + -66, + 77, + -51, + -23, + -117, + 45, + -85, + -28 + ], + [ + -118, + 11, + 5, + 43, + -13, + 68, + 8, + -94, + -112, + -80, + 78, + -23, + -97 + ], + [ + -27, + 84, + 77, + -46, + -57, + -15, + -52, + 39, + 44, + 26, + 90, + 16, + 44 + ], + [ + -26, + -69, + -6, + 35, + -112, + -8, + -87, + -64, + 59, + -42, + 44, + 7, + -42 + ], + [ + -7, + 74, + 14, + 78, + -52, + 7, + -49, + 122, + 97, + -60, + -79, + -53, + -113 + ], + [ + -126, + -121, + -90, + 47, + 81, + -115, + 33, + 20, + -80, + 39, + 45, + 116, + -87 + ], + [ + -119, + -24, + 51, + 127, + 28, + -48, + -70, + 45, + 51, + -127, + 105, + -52, + 12 + ], + [ + -50, + -47, + 86, + 0, + -85, + -42, + -46, + 65, + -87, + -28, + -7, + -101, + -59 + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_12x10x7_i8xi4_acci32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_13x13_i8xi8_accf16/test.json index cb8a31b0f..058fe6b9a 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_12x10x7_i8xi4_acci32/test.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongOutputType_13x13_i8xi8_accf16/test.json @@ -33,9 +33,9 @@ op: "FULLY_CONNECTED", attribute_type: "FullyConnectedAttribute", attribute: { - input_zp: -17, - weight_zp: 0, - accum_dtype: "INT32" + input_zp: 28, + weight_zp: 85, + accum_dtype: "FP16" }, inputs: [ "input-0", @@ -51,155 +51,139 @@ { name: "input-0", shape: [ - 12, - 10, - 7 + 13, + 13 ], type: "INT8" }, { name: "const-1", shape: [ - 13, - 10 + 6, + 13 ], - type: "INT4", + type: "INT8", data: [ - 222, - 190, - 174, - 58, - 26, - 52, - 191, - 86, - 162, - 217, - 91, - 220, - 87, - 236, - 32, - 103, - 151, - 28, - 233, - 107, - 185, - 187, - 225, + 14, + 173, + 19, + 238, + 93, + 249, + 253, + 207, + 142, + 119, 198, - 33, - 66, - 12, - 85, - 34, - 37, + 165, + 150, + 54, + 227, + 6, + 155, + 226, + 209, + 44, + 53, 167, - 174, - 10, - 252, - 47, - 87, - 222, - 164, - 241, - 43, - 189, - 178, + 92, + 110, + 150, + 85, + 77, + 62, + 127, + 117, + 223, + 112, + 171, + 179, + 60, + 98, 179, + 74, + 72, + 239, 95, - 76, - 99, + 8, + 12, + 15, + 23, + 4, + 104, + 236, + 195, + 31, + 250, + 82, + 93, + 116, + 90, + 42, + 246, + 114, + 228, + 118, + 121, + 38, + 122, + 200, + 143, + 4, + 211, + 103, + 43, + 160, + 28, + 62, + 227, + 114, 59, - 71, - 91, - 26, - 0, - 144, - 112, - 223, - 167, - 0, - 96, - 127, - 74, - 193, - 60, - 34, - 25, - 151, - 0 + 55, + 210, + 114 ] }, { name: "const-2", shape: [ - 13 + 6 ], type: "INT32", data: [ - 145, - 194, - 145, - 101, - 24, - 151, - 104, - 200, - 134, - 96, - 190, - 249, - 19, - 229, - 153, - 55, + 201, + 26, + 70, 44, - 215, - 113, - 143, - 38, - 48, - 20, + 137, + 186, + 231, + 56, + 232, + 202, + 247, 77, - 66, - 150, + 118, + 208, + 130, 124, - 82, - 12, - 201, - 58, - 56, - 112, - 94, - 239, - 37, - 131, - 111, - 99, - 63, - 216, - 58, - 33, - 72, - 254, - 228, - 68, - 103, - 72, - 138, - 156, - 237 + 97, + 110, + 95, + 48, + 47, + 183, + 0, + 118 ] }, { name: "result-0", shape: [ - 12, - 13 + 13, + 6 ], - type: "INT32" + type: "FP16" } ], inputs: [ diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_12x10x7_i8xi4_acci32/desc.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_11x6x2x15_i8xi4_acci32/desc.json index 9cc423107..9cc423107 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_12x10x7_i8xi4_acci32/desc.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_11x6x2x15_i8xi4_acci32/desc.json diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_11x6x2x15_i8xi4_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_11x6x2x15_i8xi4_acci32/input-0.json new file mode 100644 index 000000000..ea9ddcdd4 --- /dev/null +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_11x6x2x15_i8xi4_acci32/input-0.json @@ -0,0 +1,2403 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + 75, + 72, + -62, + -20, + -89, + 65, + -65, + 76, + 87, + 48, + -44, + 115, + 47, + 37, + 91 + ], + [ + 97, + -109, + 97, + 67, + -76, + -50, + 64, + -73, + -13, + 48, + 38, + 104, + -100, + -53, + 124 + ] + ], + [ + [ + 17, + -65, + -54, + -42, + 13, + -56, + 31, + -15, + 28, + -89, + 31, + 108, + -94, + -45, + 49 + ], + [ + 30, + 44, + 15, + 46, + 28, + -110, + 64, + -14, + -115, + -24, + -17, + -106, + 126, + -72, + -44 + ] + ], + [ + [ + -16, + 85, + 62, + 69, + -68, + 88, + 84, + -10, + 11, + -119, + 66, + 117, + -8, + 10, + -1 + ], + [ + -107, + 30, + 56, + 109, + 110, + -3, + 117, + 7, + 36, + 26, + 127, + 60, + -98, + -110, + -24 + ] + ], + [ + [ + 4, + 43, + -5, + 3, + 107, + -43, + -2, + 14, + -9, + 119, + 118, + 3, + -13, + 22, + -82 + ], + [ + -19, + -73, + -92, + -104, + 22, + -128, + 37, + -18, + -35, + 68, + 9, + 59, + 53, + -120, + -73 + ] + ], + [ + [ + 17, + 121, + -89, + -101, + 112, + 119, + -86, + -26, + 32, + -79, + -45, + -27, + 36, + -50, + -23 + ], + [ + -54, + 66, + -89, + -69, + -65, + 103, + 113, + 0, + -88, + 65, + -3, + 89, + -36, + 127, + 78 + ] + ], + [ + [ + -71, + 57, + -55, + -39, + -64, + 46, + -61, + 35, + 21, + 64, + 126, + -126, + 125, + -101, + 6 + ], + [ + -41, + 35, + 56, + 92, + -26, + 110, + -46, + -76, + -31, + 7, + 43, + 85, + -71, + -51, + 112 + ] + ] + ], + [ + [ + [ + -16, + -67, + 124, + -14, + 124, + 107, + 103, + 20, + 76, + 117, + -60, + -119, + -46, + 35, + 12 + ], + [ + -108, + 15, + -84, + 1, + 19, + 34, + -23, + -24, + 45, + 63, + 78, + -43, + -20, + -44, + 7 + ] + ], + [ + [ + -96, + -18, + -80, + 8, + 89, + 124, + -14, + -114, + -70, + -102, + 66, + 124, + 13, + -83, + -123 + ], + [ + 121, + -48, + -100, + -83, + -63, + 39, + 100, + -58, + 47, + -112, + -126, + -114, + 108, + 20, + 78 + ] + ], + [ + [ + -123, + -123, + 89, + -102, + -89, + 4, + 27, + -70, + -15, + 44, + -15, + -31, + -110, + -13, + 77 + ], + [ + 32, + 100, + -96, + -126, + 12, + -83, + 24, + 103, + -42, + 12, + 46, + -90, + 101, + -77, + 78 + ] + ], + [ + [ + 40, + -92, + 57, + -78, + 25, + 117, + 116, + 95, + -2, + 15, + -52, + 107, + -6, + 69, + -36 + ], + [ + 61, + -71, + 59, + -117, + -102, + -38, + -5, + 54, + -37, + -124, + -45, + -16, + 11, + 36, + -65 + ] + ], + [ + [ + 28, + 33, + 70, + 5, + 79, + -72, + 54, + -117, + -102, + 93, + -7, + 30, + 26, + 49, + -66 + ], + [ + -83, + -118, + 93, + -71, + 19, + -12, + -87, + -23, + -107, + -83, + -93, + 83, + 17, + 108, + -17 + ] + ], + [ + [ + -77, + 27, + 109, + 8, + -124, + -51, + 108, + 4, + 115, + 2, + -125, + 95, + 67, + 55, + 120 + ], + [ + -78, + 103, + -69, + 120, + -79, + 12, + 74, + -108, + -111, + 89, + -113, + 29, + 112, + 29, + -5 + ] + ] + ], + [ + [ + [ + -22, + 35, + 18, + 0, + -89, + 41, + 61, + 53, + -109, + 51, + 58, + -82, + 89, + 6, + -8 + ], + [ + 57, + 2, + 11, + -49, + 109, + 120, + -95, + 59, + -123, + -34, + 120, + -84, + -32, + -72, + 58 + ] + ], + [ + [ + -10, + 23, + 113, + 5, + 59, + -103, + -73, + 114, + 92, + 40, + -32, + -77, + 90, + 73, + -67 + ], + [ + 22, + 30, + -6, + 109, + -97, + -62, + -104, + 49, + 36, + 124, + 10, + -90, + -13, + -106, + 43 + ] + ], + [ + [ + 44, + 91, + -42, + -49, + -110, + -22, + -7, + 65, + 64, + -93, + -56, + 2, + -43, + -122, + 88 + ], + [ + 59, + 5, + -47, + 87, + -119, + -14, + 77, + 115, + -64, + 38, + -80, + -99, + -38, + 98, + 48 + ] + ], + [ + [ + -3, + -56, + -92, + -59, + -89, + -81, + 48, + -95, + -116, + 10, + -55, + -12, + -93, + -75, + -16 + ], + [ + 48, + -22, + 10, + 5, + -60, + -57, + -20, + -120, + 47, + 29, + -50, + -33, + -44, + 38, + 66 + ] + ], + [ + [ + -101, + -23, + -125, + -13, + -65, + -43, + -12, + -46, + -28, + 67, + 79, + -127, + -32, + 88, + 7 + ], + [ + -76, + 23, + -91, + -123, + 33, + 3, + 65, + -40, + 90, + -21, + 60, + -103, + -104, + 72, + 85 + ] + ], + [ + [ + 113, + -45, + -123, + 122, + 25, + -65, + 67, + 103, + -56, + 69, + 73, + 0, + 33, + -60, + 109 + ], + [ + 123, + 123, + 60, + -118, + -35, + -15, + 117, + 12, + 9, + -91, + 75, + -42, + -105, + 124, + -80 + ] + ] + ], + [ + [ + [ + -124, + -109, + -13, + -102, + 87, + 3, + -46, + -128, + -6, + -90, + 122, + -54, + -7, + -124, + -95 + ], + [ + -75, + -115, + 57, + 114, + 124, + -60, + 73, + 1, + -117, + -105, + 12, + -20, + -126, + 110, + 58 + ] + ], + [ + [ + 0, + 124, + 120, + 121, + -62, + 97, + 1, + 57, + 92, + -87, + -14, + -96, + -57, + -23, + 91 + ], + [ + 92, + -29, + -44, + 7, + 105, + 121, + -70, + -81, + 52, + -51, + -77, + -121, + -25, + -28, + 16 + ] + ], + [ + [ + -77, + 54, + 46, + -10, + -82, + 1, + 44, + -33, + -61, + 1, + -38, + -26, + -39, + -51, + 55 + ], + [ + -11, + -9, + 39, + -36, + -103, + 90, + -114, + 18, + -60, + -74, + -118, + 102, + -19, + -41, + 61 + ] + ], + [ + [ + -119, + 16, + -2, + 13, + -97, + 115, + -67, + 45, + 63, + -40, + -95, + -53, + 78, + 104, + 111 + ], + [ + -71, + 27, + -90, + 53, + -22, + 54, + 47, + 126, + -3, + -41, + 6, + -87, + -100, + 4, + 83 + ] + ], + [ + [ + 8, + 72, + -83, + -13, + 28, + -39, + -125, + -110, + 109, + 26, + -61, + -62, + -118, + 113, + -101 + ], + [ + 66, + -67, + -43, + -58, + 83, + -120, + -38, + -57, + -59, + -79, + 105, + -32, + -21, + -30, + 122 + ] + ], + [ + [ + -42, + -41, + -45, + -45, + -106, + 26, + -122, + -71, + -77, + -54, + 65, + 25, + 125, + -39, + 109 + ], + [ + -117, + 1, + 76, + 8, + 110, + -48, + -120, + 70, + -111, + 67, + 59, + 88, + -6, + 101, + -85 + ] + ] + ], + [ + [ + [ + -17, + -97, + 68, + 54, + 78, + 67, + -50, + -111, + 109, + -2, + -104, + 109, + 126, + -14, + 69 + ], + [ + -119, + -105, + -58, + 39, + -94, + -120, + 43, + 69, + 61, + 76, + 77, + 26, + 4, + 91, + -39 + ] + ], + [ + [ + -103, + 64, + -58, + 122, + -22, + 90, + -118, + 40, + -14, + -10, + -61, + 120, + -28, + 89, + -20 + ], + [ + -116, + 97, + -81, + -59, + 92, + 100, + 106, + -19, + 65, + -45, + 61, + 0, + -115, + -22, + -9 + ] + ], + [ + [ + -63, + -33, + 0, + -116, + -90, + 68, + -38, + 27, + 16, + 13, + -23, + -5, + 82, + 119, + -63 + ], + [ + 43, + 120, + -127, + 72, + -1, + 119, + 20, + 86, + -86, + -92, + 109, + 6, + 14, + -85, + -70 + ] + ], + [ + [ + 81, + -51, + 21, + -47, + -61, + -86, + 109, + 112, + -99, + -38, + 16, + -30, + 56, + -62, + -113 + ], + [ + -42, + 25, + -82, + 80, + -125, + -111, + 2, + 3, + -53, + -62, + -111, + 41, + -31, + -98, + -26 + ] + ], + [ + [ + 111, + -62, + 101, + -62, + -81, + -62, + -46, + -98, + 22, + -43, + 55, + -3, + -15, + -8, + -88 + ], + [ + 54, + -102, + 56, + 127, + 67, + -12, + -48, + 95, + -63, + -5, + 69, + 108, + 107, + -106, + 101 + ] + ], + [ + [ + -99, + 21, + 109, + 39, + 114, + -40, + -48, + -45, + -38, + 46, + -13, + 60, + -22, + -50, + -80 + ], + [ + 13, + 101, + 91, + -64, + -6, + 52, + 28, + -111, + 23, + -119, + -99, + 39, + -102, + -42, + 22 + ] + ] + ], + [ + [ + [ + 39, + -14, + -104, + 76, + 115, + 99, + 63, + -26, + 96, + -4, + -94, + 89, + -47, + 112, + -34 + ], + [ + 94, + 9, + -9, + -53, + 85, + -113, + -8, + -34, + 11, + -63, + 42, + -30, + -80, + -78, + 50 + ] + ], + [ + [ + -61, + -50, + 32, + -44, + -29, + -66, + -40, + 49, + 8, + 127, + 69, + -124, + -32, + -54, + 22 + ], + [ + -60, + 119, + -52, + 5, + -97, + 104, + 105, + 75, + -38, + -113, + 54, + -19, + 125, + 50, + 9 + ] + ], + [ + [ + 124, + 76, + -11, + -124, + -105, + -15, + 15, + -121, + -96, + 52, + 64, + -121, + 1, + -108, + 57 + ], + [ + 85, + 94, + 25, + 33, + 109, + 28, + -14, + 65, + 23, + 87, + 6, + 94, + -117, + -119, + -103 + ] + ], + [ + [ + 14, + 53, + -73, + -89, + 92, + 64, + 37, + -3, + -21, + -123, + -80, + 101, + -42, + 52, + 52 + ], + [ + -49, + -76, + 49, + -105, + -2, + 99, + 54, + 67, + -107, + -77, + -58, + -54, + -79, + 120, + -86 + ] + ], + [ + [ + 53, + 22, + 28, + -74, + -50, + 27, + -52, + 49, + -118, + -110, + 58, + 29, + -117, + 102, + -127 + ], + [ + 116, + 58, + 124, + 114, + -48, + 65, + -75, + -8, + -67, + -4, + 95, + -17, + -105, + -45, + 73 + ] + ], + [ + [ + 5, + 15, + -18, + -54, + 25, + 34, + 101, + 30, + 126, + 83, + -108, + -28, + -30, + -128, + -82 + ], + [ + 67, + -38, + -91, + -55, + -58, + -84, + -103, + 67, + 83, + -1, + 29, + 107, + 87, + -120, + 115 + ] + ] + ], + [ + [ + [ + -111, + -122, + -25, + 62, + -108, + -53, + -61, + -27, + 124, + -44, + -75, + -97, + -78, + -94, + 18 + ], + [ + -21, + -1, + 85, + 20, + -89, + -32, + -48, + 83, + -50, + -93, + 60, + -19, + -104, + 48, + -75 + ] + ], + [ + [ + 94, + 85, + -34, + 14, + 17, + 39, + -111, + -45, + -85, + 50, + -111, + 4, + 58, + 114, + -55 + ], + [ + -126, + 57, + -128, + -112, + 125, + 92, + 53, + 85, + -109, + -106, + -51, + -122, + 99, + -114, + 11 + ] + ], + [ + [ + 90, + 60, + -68, + -8, + 12, + 68, + -19, + -56, + 75, + 98, + -3, + -121, + 0, + 99, + 125 + ], + [ + -26, + -90, + 18, + 84, + 113, + -115, + -54, + -6, + -103, + 98, + -100, + 42, + 107, + 47, + 67 + ] + ], + [ + [ + -61, + 83, + -21, + -113, + -35, + -39, + 5, + -61, + -10, + -19, + -45, + 50, + -50, + 68, + -64 + ], + [ + 93, + -35, + -118, + -90, + 78, + 95, + -74, + 26, + 19, + -94, + -13, + 49, + 119, + 89, + -103 + ] + ], + [ + [ + -68, + -17, + -90, + 18, + -126, + -99, + -116, + -53, + 67, + -83, + 124, + -59, + -117, + -43, + 63 + ], + [ + -101, + -110, + 89, + 23, + -41, + 65, + 88, + -37, + 15, + -126, + -50, + 24, + -78, + 125, + 120 + ] + ], + [ + [ + -63, + -27, + -80, + 1, + -97, + -28, + 14, + 28, + 24, + -72, + 74, + 49, + 64, + -9, + 100 + ], + [ + -29, + 78, + -76, + -65, + 6, + 14, + 63, + -52, + 95, + -44, + 8, + 110, + 10, + 46, + 104 + ] + ] + ], + [ + [ + [ + 121, + -1, + -22, + -78, + 9, + 107, + -4, + -39, + -101, + -29, + -68, + 122, + 7, + -93, + -111 + ], + [ + 89, + 110, + 67, + -97, + -103, + -78, + 64, + 67, + 86, + -104, + -89, + 102, + 109, + 57, + -101 + ] + ], + [ + [ + -111, + -114, + 49, + 88, + 33, + -61, + 65, + -113, + 84, + 100, + 55, + 97, + 22, + -9, + -46 + ], + [ + 107, + 50, + -80, + 116, + -113, + 22, + -80, + 42, + -23, + -17, + 43, + 65, + -31, + 127, + -1 + ] + ], + [ + [ + -87, + -127, + -77, + 48, + 10, + -42, + -5, + 86, + 18, + -114, + -116, + -5, + -25, + 89, + 21 + ], + [ + 65, + 21, + -40, + 40, + 31, + 56, + -80, + 36, + -55, + 74, + 76, + 31, + 114, + 9, + -122 + ] + ], + [ + [ + 27, + 71, + -103, + -102, + -59, + 88, + 7, + 121, + 95, + 14, + 45, + -44, + -105, + -26, + 23 + ], + [ + -82, + -72, + -125, + 59, + 102, + 83, + -31, + 23, + 117, + 23, + -53, + -42, + 58, + -14, + 86 + ] + ], + [ + [ + 93, + -119, + 57, + -34, + 5, + -61, + -34, + -44, + -116, + 72, + -92, + -32, + -79, + -87, + -33 + ], + [ + 107, + 113, + -31, + 1, + 124, + -68, + 113, + -101, + -71, + -42, + -119, + 80, + 90, + -30, + 86 + ] + ], + [ + [ + 69, + 77, + 77, + 18, + -100, + 108, + 27, + 102, + 117, + -81, + -26, + -79, + -115, + 119, + 108 + ], + [ + 110, + 98, + 38, + 5, + 125, + 13, + 36, + -74, + 63, + 81, + 45, + -1, + -78, + -120, + 32 + ] + ] + ], + [ + [ + [ + 46, + 69, + 115, + -1, + 84, + 55, + -58, + 88, + -115, + 25, + 112, + 40, + 111, + -114, + 8 + ], + [ + 71, + 36, + 97, + -10, + 46, + -21, + 95, + -98, + -63, + -104, + 51, + -69, + -47, + 86, + -36 + ] + ], + [ + [ + -91, + -123, + -70, + 106, + 12, + 126, + -73, + -39, + -87, + -27, + 16, + 78, + -34, + 69, + 32 + ], + [ + -54, + 105, + -17, + -90, + 118, + 105, + -116, + 103, + 114, + 84, + -63, + 33, + 9, + 30, + 29 + ] + ], + [ + [ + 35, + 3, + 48, + 6, + -124, + -119, + 117, + 104, + 21, + -84, + 72, + -92, + -32, + -44, + -125 + ], + [ + 78, + 2, + -48, + 1, + -128, + -17, + 5, + -42, + 84, + -65, + -93, + 7, + 99, + -32, + -117 + ] + ], + [ + [ + 120, + -15, + -84, + 29, + -47, + 112, + -53, + 12, + 11, + -66, + -1, + -101, + 36, + 66, + 115 + ], + [ + -45, + -55, + 12, + 49, + 126, + -122, + -67, + -61, + -63, + -10, + 95, + -121, + 80, + 30, + 29 + ] + ], + [ + [ + 45, + -99, + 63, + -65, + 4, + 45, + 26, + -46, + -27, + -7, + -118, + 57, + -103, + -11, + 39 + ], + [ + -108, + 126, + -32, + -124, + 40, + 14, + 35, + 64, + -7, + 83, + -34, + 11, + -88, + 30, + -62 + ] + ], + [ + [ + 50, + 77, + 91, + 109, + -97, + -93, + 109, + -31, + -122, + -55, + 86, + -38, + -109, + 56, + -79 + ], + [ + -38, + -128, + 26, + -15, + 93, + -43, + -76, + -86, + -77, + -13, + -106, + -25, + 90, + 68, + 35 + ] + ] + ], + [ + [ + [ + 100, + 71, + 39, + 92, + -97, + 81, + -53, + 59, + 105, + -2, + -106, + -34, + -24, + 111, + 113 + ], + [ + 17, + 115, + -17, + -23, + 86, + 42, + 5, + -12, + 52, + 64, + -3, + -120, + -102, + -92, + -10 + ] + ], + [ + [ + 29, + 77, + -69, + 73, + 42, + -115, + -39, + -51, + 98, + 107, + 81, + 7, + -2, + -49, + 69 + ], + [ + -106, + -59, + -94, + -2, + -52, + -78, + -32, + 92, + 14, + 82, + 105, + 102, + -39, + 96, + 104 + ] + ], + [ + [ + 117, + -39, + -70, + 21, + 110, + 102, + 18, + -90, + -20, + 54, + 15, + -40, + -41, + -113, + -55 + ], + [ + 43, + -67, + 126, + -107, + 22, + -1, + 85, + 99, + 11, + 33, + 50, + 5, + -81, + -19, + -67 + ] + ], + [ + [ + -10, + 29, + -75, + -65, + 82, + -32, + -78, + 54, + 55, + 83, + 66, + 125, + 19, + -55, + 92 + ], + [ + -61, + -54, + 84, + 97, + -42, + 58, + 108, + 76, + -127, + 42, + -85, + 88, + -111, + 126, + -83 + ] + ], + [ + [ + -21, + -69, + 80, + -28, + 62, + -111, + -13, + 105, + 109, + -75, + -28, + -24, + 16, + 9, + -101 + ], + [ + 67, + -71, + -48, + 87, + 48, + -27, + 105, + -28, + 16, + -66, + -82, + -3, + 16, + 78, + -28 + ] + ], + [ + [ + 101, + 27, + -111, + 61, + 19, + -29, + -9, + -51, + 29, + 17, + -14, + -55, + -26, + -1, + -8 + ], + [ + -49, + 20, + -71, + 0, + -97, + -8, + 72, + 81, + 49, + 62, + -112, + -41, + 39, + 76, + 21 + ] + ] + ], + [ + [ + [ + 90, + -59, + -89, + -106, + 21, + 42, + -55, + 72, + 61, + -36, + -67, + 62, + 43, + -85, + -63 + ], + [ + -4, + 2, + -86, + 114, + -29, + -31, + -113, + 96, + -68, + 124, + -2, + 95, + -83, + -86, + 77 + ] + ], + [ + [ + 81, + 11, + -120, + 113, + -28, + 111, + 94, + 89, + 48, + 44, + 8, + -122, + -29, + 59, + 79 + ], + [ + 15, + 53, + -123, + -9, + 1, + 100, + -49, + -70, + -38, + -85, + 14, + 36, + 77, + 120, + -110 + ] + ], + [ + [ + -65, + -52, + -65, + 83, + -93, + -121, + 92, + 118, + -71, + -43, + 0, + 6, + 125, + -25, + -125 + ], + [ + -20, + 14, + 4, + 3, + 108, + 78, + -64, + -38, + 42, + -23, + -19, + -86, + -63, + 61, + 87 + ] + ], + [ + [ + 72, + -50, + -94, + -88, + -28, + 4, + 100, + 102, + -128, + 53, + -52, + -78, + 14, + -120, + -43 + ], + [ + 13, + -59, + 23, + -11, + 76, + -82, + -114, + 7, + -63, + 52, + -105, + 19, + 125, + -105, + -51 + ] + ], + [ + [ + 88, + 8, + -84, + -74, + 67, + 92, + -36, + -7, + 72, + -83, + -76, + 70, + -81, + 69, + -1 + ], + [ + 125, + -120, + 114, + -71, + -120, + 57, + 8, + 86, + -101, + -108, + 17, + 97, + -25, + 76, + 103 + ] + ], + [ + [ + 94, + 2, + 50, + 6, + 44, + 17, + 6, + -17, + 39, + 64, + 107, + 28, + -103, + 22, + -48 + ], + [ + -122, + -110, + 23, + 113, + 1, + -15, + -106, + 44, + -114, + 87, + 80, + 125, + -56, + -87, + -52 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/test.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_11x6x2x15_i8xi4_acci32/test.json index 48ac33d36..7defb668d 100644 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongInputType_7x2_i4xi4_acci32/test.json +++ b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_11x6x2x15_i8xi4_acci32/test.json @@ -33,7 +33,7 @@ op: "FULLY_CONNECTED", attribute_type: "FullyConnectedAttribute", attribute: { - input_zp: 0, + input_zp: -21, weight_zp: 0, accum_dtype: "INT32" }, @@ -51,52 +51,86 @@ { name: "input-0", shape: [ - 7, - 2 + 11, + 6, + 2, + 15 ], - type: "INT4" + type: "INT8" }, { name: "const-1", shape: [ - 11, - 2 + 7, + 6 ], type: "INT4", data: [ - 32, - 118, - 158, - 97, + 196, + 182, + 201, + 36, + 46, 18, - 111, - 84, - 217, - 26, - 89, - 87 + 160, + 12, + 11, + 74, + 170, + 194, + 222, + 76, + 195, + 51, + 17, + 247, + 30, + 53, + 250 ] }, { name: "const-2", shape: [ - 11 + 7 ], - type: "INT4", + type: "INT32", data: [ + 17, + 146, + 101, + 61, + 113, + 169, + 82, + 185, + 196, + 227, 10, - 245, - 74, - 95, - 225, - 4 + 125, + 212, + 44, + 224, + 78, + 35, + 169, + 186, + 88, + 23, + 237, + 235, + 148, + 52, + 232, + 100, + 20 ] }, { name: "result-0", shape: [ - 7, - 11 + 11, + 7 ], type: "INT32" } diff --git a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_12x10x7_i8xi4_acci32/input-0.json b/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_12x10x7_i8xi4_acci32/input-0.json deleted file mode 100644 index 41447361b..000000000 --- a/operators/tensor/fully_connected/fully_connected_ERRORIF_WrongRank_12x10x7_i8xi4_acci32/input-0.json +++ /dev/null @@ -1,1109 +0,0 @@ -{ - "type": "int32", - "data": [ - [ - [ - -90, - 73, - 33, - -1, - -28, - -89, - 107 - ], - [ - 37, - -47, - -23, - 57, - 56, - -10, - -51 - ], - [ - 40, - 40, - 25, - -110, - -7, - 29, - 115 - ], - [ - 6, - -41, - 14, - -83, - -105, - 45, - 124 - ], - [ - 88, - 21, - -118, - 124, - -13, - -54, - 100 - ], - [ - 63, - 63, - -57, - 125, - -13, - 8, - 64 - ], - [ - 40, - -84, - -51, - -36, - 114, - 54, - -35 - ], - [ - 60, - 61, - -28, - -25, - 100, - 15, - -90 - ], - [ - 56, - 22, - 2, - 57, - 104, - -44, - -21 - ], - [ - -80, - 37, - -25, - -41, - 50, - -24, - -10 - ] - ], - [ - [ - -16, - -62, - -96, - 83, - -105, - -45, - 42 - ], - [ - -95, - 39, - 59, - 41, - -50, - -123, - 99 - ], - [ - -45, - 78, - -78, - -87, - 71, - 112, - 92 - ], - [ - 64, - -65, - 105, - 42, - -84, - -95, - 95 - ], - [ - -58, - 68, - -93, - -57, - -56, - -57, - 44 - ], - [ - 106, - 105, - 61, - -77, - 117, - 10, - 11 - ], - [ - 51, - 68, - 115, - 21, - 28, - 62, - -63 - ], - [ - -50, - 32, - -112, - -46, - 55, - 121, - 4 - ], - [ - -26, - -16, - 47, - 11, - -123, - 10, - -26 - ], - [ - 51, - 96, - 118, - 28, - -36, - -15, - -83 - ] - ], - [ - [ - 111, - 88, - 90, - -45, - -46, - 91, - 11 - ], - [ - 52, - -3, - -15, - 33, - 80, - -43, - 79 - ], - [ - -66, - -25, - 105, - 116, - 108, - -48, - 87 - ], - [ - 111, - 122, - -123, - 62, - 127, - 67, - -69 - ], - [ - 67, - -102, - -5, - 32, - -12, - 51, - -67 - ], - [ - 27, - 37, - 34, - -54, - -50, - -63, - -10 - ], - [ - 22, - -36, - -24, - -55, - -72, - 40, - 80 - ], - [ - -54, - 92, - 18, - -86, - -35, - -127, - -118 - ], - [ - -42, - -12, - 76, - -94, - 86, - -68, - -93 - ], - [ - 51, - 70, - 26, - -99, - -99, - -29, - -13 - ] - ], - [ - [ - 127, - -55, - -79, - 114, - -89, - -122, - -20 - ], - [ - -26, - 30, - 96, - 110, - -54, - 123, - 33 - ], - [ - -111, - 112, - -93, - 22, - 74, - -65, - -59 - ], - [ - -7, - 98, - -71, - 41, - -13, - -100, - 53 - ], - [ - 85, - 19, - -83, - -89, - -20, - 1, - 13 - ], - [ - -66, - 0, - -53, - 47, - 75, - 39, - -128 - ], - [ - 125, - -122, - 127, - -120, - 4, - -101, - -104 - ], - [ - 46, - 58, - -98, - 122, - -46, - -47, - -52 - ], - [ - -10, - -83, - -20, - -75, - -115, - -34, - 44 - ], - [ - 67, - -38, - -46, - 73, - 46, - 85, - 103 - ] - ], - [ - [ - 82, - 111, - -22, - -27, - -46, - -68, - 63 - ], - [ - 54, - 77, - -86, - -3, - -72, - 100, - -60 - ], - [ - -92, - 17, - 97, - 106, - -104, - -45, - -89 - ], - [ - -50, - 8, - -57, - -111, - 2, - -115, - -70 - ], - [ - -128, - -106, - -17, - 89, - 70, - -103, - -120 - ], - [ - -42, - 38, - 63, - 82, - -41, - -85, - -122 - ], - [ - -91, - -112, - 92, - -60, - 82, - 13, - 9 - ], - [ - -12, - 81, - -117, - -105, - -20, - -28, - 11 - ], - [ - 60, - 22, - -63, - -45, - 64, - -77, - 1 - ], - [ - 9, - 64, - 54, - -10, - -49, - -34, - -23 - ] - ], - [ - [ - -72, - 32, - -75, - 38, - 64, - 118, - -98 - ], - [ - 66, - -106, - -42, - -83, - -87, - -84, - -117 - ], - [ - 82, - -113, - -26, - 50, - 125, - 90, - -93 - ], - [ - 124, - 39, - -83, - -14, - 106, - -28, - -81 - ], - [ - 96, - 115, - 121, - 116, - 95, - -12, - -79 - ], - [ - 29, - -72, - -7, - 39, - 114, - -54, - -64 - ], - [ - 60, - -127, - 17, - 62, - 13, - -30, - 84 - ], - [ - -34, - 53, - -10, - -122, - 7, - -116, - 110 - ], - [ - 25, - -33, - -4, - 30, - -62, - -55, - -21 - ], - [ - -62, - 66, - -102, - 83, - -39, - 15, - -88 - ] - ], - [ - [ - -30, - 65, - -59, - -95, - 5, - -87, - -48 - ], - [ - -13, - 16, - 35, - 45, - 88, - -112, - -36 - ], - [ - -128, - -126, - -74, - 25, - 100, - 70, - 37 - ], - [ - 71, - -84, - 86, - 99, - -104, - -8, - 84 - ], - [ - -7, - 87, - 111, - -7, - -113, - -41, - -73 - ], - [ - -7, - 21, - -10, - -78, - -51, - 45, - -122 - ], - [ - -74, - 100, - -103, - -22, - -76, - -102, - -20 - ], - [ - 5, - -83, - -109, - -94, - 38, - 92, - -82 - ], - [ - -46, - -40, - -36, - -66, - -114, - 6, - -37 - ], - [ - -41, - -61, - 109, - 28, - -21, - -76, - 77 - ] - ], - [ - [ - 99, - -120, - 109, - 51, - -103, - 64, - -101 - ], - [ - -115, - -99, - -11, - 30, - -24, - -97, - -78 - ], - [ - 90, - 118, - 65, - -102, - 81, - 49, - 6 - ], - [ - -92, - 127, - -15, - -117, - -75, - -26, - -113 - ], - [ - -46, - -9, - 114, - -106, - 19, - 106, - 78 - ], - [ - 108, - -85, - 77, - 122, - -45, - -1, - 7 - ], - [ - -2, - -54, - 120, - 116, - -31, - 78, - -27 - ], - [ - 75, - 21, - -8, - -96, - 39, - -46, - -73 - ], - [ - -79, - 123, - -102, - 76, - 93, - -121, - 22 - ], - [ - 19, - -37, - 42, - -24, - -16, - -18, - 76 - ] - ], - [ - [ - 34, - -31, - 109, - 77, - 110, - 59, - -28 - ], - [ - 69, - -44, - -59, - -13, - 120, - 17, - -30 - ], - [ - -10, - -54, - 40, - -39, - 13, - -34, - -46 - ], - [ - 120, - -40, - -110, - -32, - 8, - -104, - -50 - ], - [ - -86, - 0, - 57, - 119, - -29, - 92, - -74 - ], - [ - 71, - 16, - 66, - 65, - 8, - -63, - 6 - ], - [ - 83, - 120, - 109, - -82, - 24, - -102, - 43 - ], - [ - 126, - -115, - 40, - 114, - 88, - -28, - -102 - ], - [ - 108, - 107, - 20, - 122, - -127, - 29, - -119 - ], - [ - 111, - 46, - 105, - 16, - -107, - -122, - -43 - ] - ], - [ - [ - 62, - -90, - 90, - -67, - -1, - -77, - -9 - ], - [ - -13, - -127, - 17, - 73, - 111, - -44, - 97 - ], - [ - 96, - 125, - -33, - 89, - 16, - -114, - -59 - ], - [ - 44, - -87, - -17, - 70, - -90, - -1, - -73 - ], - [ - 9, - -67, - 119, - -109, - 118, - 74, - 91 - ], - [ - 89, - -80, - 110, - 24, - 118, - 96, - 20 - ], - [ - -33, - -98, - -103, - -29, - 79, - 1, - -5 - ], - [ - -66, - 16, - 35, - 123, - 58, - 27, - 104 - ], - [ - -20, - 111, - -34, - -96, - -22, - -96, - -98 - ], - [ - 97, - 75, - -72, - 86, - -111, - -56, - 52 - ] - ], - [ - [ - -51, - 59, - 95, - -112, - -122, - 112, - 5 - ], - [ - 1, - -10, - -17, - 48, - 20, - -87, - 32 - ], - [ - 43, - -99, - -32, - 74, - 30, - -94, - -118 - ], - [ - 20, - -10, - 118, - 5, - 110, - -74, - -14 - ], - [ - -93, - 19, - -80, - -2, - -40, - -81, - -104 - ], - [ - 3, - 114, - -78, - -25, - -71, - 79, - -22 - ], - [ - 121, - -66, - -108, - 21, - 38, - 125, - 95 - ], - [ - 98, - 34, - -36, - -19, - -94, - -18, - -35 - ], - [ - -119, - -76, - 8, - -34, - 126, - -6, - 117 - ], - [ - 41, - -118, - -76, - 52, - 11, - -51, - 5 - ] - ], - [ - [ - 103, - -29, - -117, - -49, - 111, - 67, - 86 - ], - [ - 105, - -98, - -56, - -113, - -127, - 85, - 111 - ], - [ - -89, - 56, - 8, - -111, - 106, - 95, - 17 - ], - [ - 53, - -27, - 74, - -15, - 125, - -112, - -84 - ], - [ - 120, - -55, - -49, - 74, - -80, - 3, - -55 - ], - [ - -78, - 118, - -77, - -104, - 44, - 94, - -96 - ], - [ - 53, - 10, - 84, - -96, - 121, - 30, - 87 - ], - [ - -36, - 113, - 32, - -96, - 108, - 75, - -52 - ], - [ - 11, - -29, - 11, - 119, - 102, - -73, - 120 - ], - [ - -16, - 52, - 67, - -5, - -12, - -12, - 92 - ] - ] - ] -}
\ No newline at end of file |