diff options
Diffstat (limited to 'operators/tensor/matmul/matmul_2x12x10_i8')
5 files changed, 799 insertions, 0 deletions
diff --git a/operators/tensor/matmul/matmul_2x12x10_i8/Conformance-result-0.json b/operators/tensor/matmul/matmul_2x12x10_i8/Conformance-result-0.json new file mode 100644 index 000000000..8aa76fd0c --- /dev/null +++ b/operators/tensor/matmul/matmul_2x12x10_i8/Conformance-result-0.json @@ -0,0 +1,225 @@ +{ + "type": "int32", + "data": [ + [ + [ + 91747, + 58562, + 119236, + 111354, + 127703, + 125730, + 120331 + ], + [ + 36237, + 38915, + 118131, + 67695, + 128123, + 104928, + 86591 + ], + [ + 24365, + 30856, + 89758, + 57050, + 122922, + 77128, + 68238 + ], + [ + 95411, + 57702, + 128899, + 82859, + 126512, + 135455, + 79202 + ], + [ + 34813, + 45187, + 53976, + 49793, + 95009, + 67318, + 66003 + ], + [ + 56867, + 42629, + 112323, + 93741, + 115517, + 75590, + 120620 + ], + [ + 50695, + 42222, + 47158, + 54919, + 94885, + 77117, + 59112 + ], + [ + 34316, + 46785, + 101253, + 83598, + 119792, + 111182, + 111941 + ], + [ + 46589, + 51651, + 85329, + 62261, + 107250, + 84172, + 74997 + ], + [ + 111050, + 67204, + 93793, + 82409, + 159825, + 124197, + 74234 + ], + [ + 30573, + 15297, + 46562, + 49693, + 31353, + 42093, + 55554 + ], + [ + 46275, + 48578, + 106024, + 77316, + 122373, + 113924, + 91141 + ] + ], + [ + [ + 19439, + 35330, + 46201, + 54057, + 59680, + 58339, + 82545 + ], + [ + 83520, + 36102, + 105940, + 54693, + 72168, + 98833, + 136245 + ], + [ + 89529, + 52351, + 118645, + 59826, + 98876, + 144800, + 97522 + ], + [ + 58286, + 34218, + 97809, + 74048, + 79820, + 69998, + 98906 + ], + [ + 72291, + 102322, + 80855, + 46479, + 42149, + 143553, + 122400 + ], + [ + 50978, + 35844, + 82853, + 70780, + 70355, + 86301, + 74546 + ], + [ + 25372, + 38029, + 73814, + 52939, + 83154, + 98820, + 95722 + ], + [ + 65391, + 76351, + 99639, + 90692, + 90931, + 147616, + 94634 + ], + [ + 34492, + 39957, + 78524, + 34243, + 56917, + 113726, + 111199 + ], + [ + 55359, + 79673, + 75485, + 37656, + 33871, + 94176, + 80986 + ], + [ + 59111, + 46783, + 81086, + 77168, + 92905, + 112815, + 107684 + ], + [ + 33623, + 71310, + 41183, + 55317, + 14283, + 71939, + 86530 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/matmul/matmul_2x12x10_i8/desc.json b/operators/tensor/matmul/matmul_2x12x10_i8/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/tensor/matmul/matmul_2x12x10_i8/desc.json @@ -0,0 +1,22 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ] +}
\ No newline at end of file diff --git a/operators/tensor/matmul/matmul_2x12x10_i8/input-0.json b/operators/tensor/matmul/matmul_2x12x10_i8/input-0.json new file mode 100644 index 000000000..50dc69c0a --- /dev/null +++ b/operators/tensor/matmul/matmul_2x12x10_i8/input-0.json @@ -0,0 +1,297 @@ +{ + "type": "int32", + "data": [ + [ + [ + 6, + 121, + 60, + 66, + 55, + 73, + 3, + -96, + 86, + -13 + ], + [ + 0, + -34, + -82, + 109, + 72, + 36, + -25, + 82, + 11, + -15 + ], + [ + -13, + -70, + -105, + 13, + 99, + -112, + 91, + 83, + -58, + 33 + ], + [ + -86, + 66, + 51, + -38, + -111, + 120, + -14, + 100, + 45, + 71 + ], + [ + 66, + -79, + -35, + -9, + -1, + -117, + 11, + -89, + 62, + 46 + ], + [ + 108, + 62, + -35, + 119, + -23, + -45, + 103, + -34, + -109, + -8 + ], + [ + 75, + -80, + -10, + -95, + 47, + -7, + -44, + -70, + 16, + 43 + ], + [ + 112, + -17, + -87, + 85, + 33, + 51, + -104, + -49, + 68, + 85 + ], + [ + -17, + 78, + 87, + -29, + 101, + -55, + -67, + 46, + 35, + -93 + ], + [ + 85, + -77, + 78, + -127, + 75, + 73, + 71, + 42, + -8, + 52 + ], + [ + -58, + 71, + 14, + -11, + 1, + 17, + -119, + -93, + -66, + -99 + ], + [ + -16, + 43, + 39, + -8, + 90, + 16, + -108, + 67, + 19, + 34 + ] + ], + [ + [ + 16, + 13, + -105, + 15, + 75, + -51, + 26, + -121, + -40, + -17 + ], + [ + 123, + -74, + -58, + -24, + 126, + 90, + -120, + -69, + 82, + -114 + ], + [ + 91, + -56, + 106, + -53, + -17, + 41, + -96, + 14, + 1, + 72 + ], + [ + 127, + 42, + -24, + -24, + -22, + 80, + -46, + -86, + -43, + -123 + ], + [ + -101, + -105, + 69, + 56, + 50, + -10, + 55, + -87, + 102, + 0 + ], + [ + 112, + -90, + -1, + 50, + -2, + -14, + -86, + -31, + -67, + -51 + ], + [ + 47, + 33, + 27, + -36, + 117, + -106, + -41, + -98, + -42, + 118 + ], + [ + -35, + 104, + -2, + 51, + -11, + -60, + 67, + 120, + -61, + 71 + ], + [ + -62, + 55, + 73, + -13, + 60, + -59, + -108, + -104, + -14, + 103 + ], + [ + -96, + -12, + 52, + -77, + 56, + -50, + 79, + 20, + 12, + -83 + ], + [ + -10, + 91, + -124, + 66, + -2, + 56, + 41, + -18, + -49, + 32 + ], + [ + -93, + 21, + -104, + 38, + 32, + -107, + 65, + -22, + 73, + -118 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/matmul/matmul_2x12x10_i8/input-1.json b/operators/tensor/matmul/matmul_2x12x10_i8/input-1.json new file mode 100644 index 000000000..cc212a762 --- /dev/null +++ b/operators/tensor/matmul/matmul_2x12x10_i8/input-1.json @@ -0,0 +1,189 @@ +{ + "type": "int32", + "data": [ + [ + [ + -83, + -2, + -80, + -44, + 41, + -92, + 45 + ], + [ + -102, + -84, + 22, + 75, + -85, + -52, + 108 + ], + [ + 125, + 20, + -14, + -40, + 28, + 23, + -53 + ], + [ + -123, + -90, + 117, + -21, + -5, + -9, + 72 + ], + [ + -112, + -107, + -58, + -4, + 43, + -3, + -16 + ], + [ + 112, + -87, + 18, + 10, + -7, + 78, + -60 + ], + [ + 116, + -44, + 11, + 5, + 89, + -16, + -56 + ], + [ + -123, + -35, + 83, + -126, + 101, + 10, + -93 + ], + [ + -51, + 13, + -48, + -101, + 42, + 44, + -98 + ], + [ + -57, + -66, + 40, + 58, + 58, + 112, + 68 + ] + ], + [ + [ + -46, + -101, + 29, + 106, + 121, + -70, + -68 + ], + [ + -119, + -92, + 14, + 11, + -34, + -49, + 84 + ], + [ + -11, + 78, + 118, + -47, + -77, + 115, + 34 + ], + [ + -54, + 31, + 3, + 103, + -63, + 125, + 111 + ], + [ + -82, + -86, + 8, + -117, + -52, + -17, + 120 + ], + [ + 126, + -90, + 100, + -105, + 63, + 88, + 100 + ], + [ + -71, + 100, + -99, + 4, + -8, + -48, + -123 + ], + [ + 69, + -43, + 41, + -23, + -33, + 98, + -104 + ], + [ + 60, + 63, + -31, + -61, + -127, + 111, + 114 + ], + [ + -67, + -120, + -97, + -111, + 84, + 100, + -89 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/tensor/matmul/matmul_2x12x10_i8/test.json b/operators/tensor/matmul/matmul_2x12x10_i8/test.json new file mode 100644 index 000000000..ca73c36f8 --- /dev/null +++ b/operators/tensor/matmul/matmul_2x12x10_i8/test.json @@ -0,0 +1,66 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "MATMUL", + attribute_type: "MatMulAttribute", + attribute: { + a_zp: -77, + b_zp: -104 + }, + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 12, + 10 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 2, + 10, + 7 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 2, + 12, + 7 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |