diff options
Diffstat (limited to 'operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8')
4 files changed, 481 insertions, 0 deletions
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/desc.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/desc.json new file mode 100644 index 000000000..e7d7ed273 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/desc.json @@ -0,0 +1,24 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/input-0.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/input-0.json new file mode 100644 index 000000000..835d0d59d --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/input-0.json @@ -0,0 +1,163 @@ +{ + "type": "int32", + "data": [ + [ + [ + 26, + -69, + -42, + -34, + 1, + -35, + 60, + -45, + -17, + -31, + -82 + ], + [ + 47, + -68, + -52, + 74, + 114, + 43, + 106, + 90, + -5, + 69, + -44 + ], + [ + -11, + 9, + 117, + 89, + -3, + 39, + -77, + 77, + 13, + 8, + 68 + ], + [ + 34, + -110, + -55, + -83, + 60, + -120, + -77, + 24, + 49, + 0, + 92 + ], + [ + 107, + -95, + 115, + 29, + 34, + -104, + 31, + 57, + 20, + -107, + 5 + ], + [ + 111, + 57, + -93, + 117, + 117, + -85, + 77, + -24, + 23, + -15, + 72 + ], + [ + 127, + 75, + 110, + 114, + -105, + -64, + 56, + 23, + -116, + -104, + 5 + ], + [ + 29, + -86, + -85, + -95, + 16, + -126, + 18, + -7, + -9, + 45, + 5 + ], + [ + 58, + 67, + 107, + 76, + 4, + -3, + -68, + 25, + -93, + 110, + 88 + ], + [ + -98, + 73, + -99, + 56, + -106, + -4, + 40, + 58, + -21, + 107, + 70 + ], + [ + -75, + 43, + 59, + -43, + 60, + 101, + 81, + 67, + 34, + -59, + 75 + ], + [ + -35, + 8, + -48, + -48, + -88, + 118, + -91, + -106, + 111, + 14, + -16 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/input-1.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/input-1.json new file mode 100644 index 000000000..05d6af131 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/input-1.json @@ -0,0 +1,163 @@ +{ + "type": "int32", + "data": [ + [ + [ + 60, + -30, + -96, + 58, + -83, + 13, + 114, + 111, + -36, + 71, + 28 + ], + [ + -6, + -93, + -32, + 38, + 124, + -127, + 55, + 88, + 115, + -20, + -98 + ], + [ + -59, + 89, + 96, + 35, + -97, + -97, + -6, + 22, + -120, + 47, + 11 + ], + [ + -125, + -104, + -12, + 56, + 83, + -18, + -53, + 119, + -11, + -48, + -15 + ], + [ + -125, + -51, + 3, + 107, + 60, + 72, + 11, + -100, + -28, + 127, + -117 + ], + [ + 97, + 47, + -56, + 71, + 86, + -117, + -101, + 42, + 127, + -122, + 42 + ], + [ + -94, + 38, + 31, + -105, + 46, + 101, + 93, + -121, + -66, + -67, + -12 + ], + [ + -92, + 90, + 70, + 78, + -78, + -125, + 105, + -55, + 40, + 104, + -119 + ], + [ + -127, + -127, + -88, + -115, + 81, + 27, + 122, + 77, + 118, + -67, + -55 + ], + [ + 89, + -66, + -114, + 43, + 77, + 119, + 109, + -98, + 69, + 88, + 50 + ], + [ + 81, + 86, + -14, + -118, + -12, + -77, + -99, + -97, + 50, + 1, + 10 + ], + [ + 62, + 12, + 33, + -106, + 89, + -14, + -89, + 80, + 60, + -115, + -79 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/test.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/test.json new file mode 100644 index 000000000..d577525eb --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x12x11_i8/test.json @@ -0,0 +1,131 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "SCATTER", + attribute_type: "NONE", + inputs: [ + "input-0", + "const-2", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 12, + 11 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 1, + 12, + 11 + ], + type: "INT8" + }, + { + name: "const-2", + shape: [ + 1, + 12 + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 8, + 0, + 0, + 0, + 6, + 0, + 0, + 0, + 11, + 0, + 0, + 0, + 8, + 0, + 0, + 0, + 7, + 0, + 0, + 0, + 6, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 7, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 1, + 12, + 11 + ], + type: "FLOAT" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |