diff options
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0')
3 files changed, 99 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/desc.json new file mode 100644 index 000000000..992afc22b --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/desc.json @@ -0,0 +1,22 @@ +{ + "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-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/input-0.json new file mode 100644 index 000000000..8fc76f936 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/input-0.json @@ -0,0 +1,17 @@ +{ + "type": "int32", + "data": [ + 1, + 7, + 0, + 3, + 6, + 6, + -1, + 5, + 7, + -1, + -7, + -5 + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/test.json new file mode 100644 index 000000000..567b7e87c --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_12_i4_perm0/test.json @@ -0,0 +1,60 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 0 + ], + size: [ + 9 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "INT4" + }, + { + name: "result-0", + shape: [ + 9 + ], + type: "INT4" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |