diff options
Diffstat (limited to 'operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1')
3 files changed, 167 insertions, 0 deletions
diff --git a/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/desc.json b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/desc.json new file mode 100644 index 000000000..453da2758 --- /dev/null +++ b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/desc.json @@ -0,0 +1,18 @@ +{ + "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" +}
\ No newline at end of file diff --git a/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/input-0.json b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/input-0.json new file mode 100644 index 000000000..470effba8 --- /dev/null +++ b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/input-0.json @@ -0,0 +1,96 @@ +{ + "type": "int32", + "data": [ + [ + 2, + 0, + -6, + -7, + 5 + ], + [ + -7, + -7, + 4, + -6, + 1 + ], + [ + -7, + -6, + 5, + -3, + 2 + ], + [ + 4, + 7, + 1, + -2, + 3 + ], + [ + -5, + -1, + 3, + 1, + 2 + ], + [ + -5, + -4, + -1, + 4, + 7 + ], + [ + 3, + 3, + 0, + 6, + -1 + ], + [ + 6, + -7, + 0, + -1, + -1 + ], + [ + 5, + 1, + 1, + -6, + 0 + ], + [ + 2, + -4, + -4, + 3, + -2 + ], + [ + -4, + -6, + 7, + -5, + -7 + ], + [ + 0, + -1, + 3, + 4, + 4 + ], + [ + -4, + 6, + -3, + -5, + 6 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/test.json b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/test.json new file mode 100644 index 000000000..3980424b9 --- /dev/null +++ b/operators/data_layout/reshape/reshape_ERRORIF_WrongInputType_13x5_i4_perm2_rank1/test.json @@ -0,0 +1,53 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESHAPE", + attribute_type: "ReshapeAttribute", + attribute: { + new_shape: [ + 65 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 13, + 5 + ], + type: "INT4" + }, + { + name: "result-0", + shape: [ + 65 + ], + type: "INT4" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |