diff options
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0')
3 files changed, 176 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/desc.json b/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/desc.json new file mode 100644 index 000000000..a8d675666 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_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": "starting point plus size larger than input dimension", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/input-0.json b/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/input-0.json new file mode 100644 index 000000000..c64d01b5a --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/input-0.json @@ -0,0 +1,95 @@ +{ + "type": "int32", + "data": [ + [ + -1284835406, + 384025400, + 1330090156, + 787767465, + -1087681589, + -1129737529, + -1192741022 + ], + [ + 566703565, + 740064871, + 90061603, + -434800025, + -1880784576, + 1440871994, + 687925674 + ], + [ + 593862317, + -1702006504, + -909610864, + -842713519, + 420577266, + 1234062638, + 1573940679 + ], + [ + 94841845, + -582041253, + -394681947, + 1015634015, + -781316613, + -361494597, + 1229459378 + ], + [ + 184998834, + -138649599, + 1003733976, + -907833804, + -1887520568, + 1238604182, + -193490329 + ], + [ + -749582456, + -1738544711, + 1831005001, + 966391454, + -970336932, + 463024383, + -153168600 + ], + [ + -743331449, + -809108687, + -1819857043, + 2039158935, + 1828807648, + 1591422898, + -794552971 + ], + [ + 2134048672, + -964749396, + 1393514771, + -1713670602, + -814056354, + 332229503, + 2009122643 + ], + [ + -1006510746, + -290400658, + 1472542775, + -119052314, + 784977358, + -350803066, + -2130669256 + ], + [ + -931609280, + 282070309, + -2063876239, + -1151761293, + 1946081547, + -2081482371, + -1084987225 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/test.json b/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/test.json new file mode 100644 index 000000000..84698985d --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_StartSizeOutsideBounds_10x7_i32_perm0/test.json @@ -0,0 +1,59 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 9, + 6 + ], + size: [ + 2, + 4 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 7 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 2, + 4 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |