diff options
Diffstat (limited to 'operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48')
3 files changed, 149 insertions, 0 deletions
diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/desc.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/desc.json new file mode 100644 index 000000000..15cad4b15 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/desc.json @@ -0,0 +1,21 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0" + ], + "ifm_file": [ + "input-0.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Input data type not supported for this operator", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/input-0.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/input-0.json new file mode 100644 index 000000000..6f1baa668 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/input-0.json @@ -0,0 +1,35 @@ +{ + "type": "int64", + "data": [ + [ + [ + -129024139736719, + -1691434013200 + ], + [ + -47889811296209, + -100057545660131 + ], + [ + -111632140423811, + 24669753912536 + ], + [ + -92719836509407, + 119660675419340 + ], + [ + 22816682409307, + -43102318202255 + ], + [ + 25590435847369, + -134318769288332 + ], + [ + 129072943867592, + -4981139674356 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/test.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/test.json new file mode 100644 index 000000000..94d730957 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_1x7x2_i48/test.json @@ -0,0 +1,93 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "GATHER", + attribute_type: "NONE", + inputs: [ + "input-0", + "const-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 7, + 2 + ], + type: "INT48" + }, + { + name: "const-1", + shape: [ + 1, + 4 + ], + type: "INT32", + data: [ + 3, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 1, + 4, + 2 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |