diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-03-01 12:24:20 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-03-02 16:15:56 +0000 |
commit | fde43724c4e354634566f93fa60d21048c1b7888 (patch) | |
tree | 36f7c9c934a4e02dc83b2e7c3417581b48b866bf /operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1 | |
parent | 43f13e903970bc660d31c0f791007d13587e1c4d (diff) | |
download | conformance_tests-fde43724c4e354634566f93fa60d21048c1b7888.tar.gz |
Regen DATA LAYOUT tests for test gen improvements
PAD, SLICE, TILE and TRANSPOSE have improved ERROR IF tests.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Id514aaff48d9710552fa8de27ff2045ff4107764
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1')
3 files changed, 201 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/desc.json new file mode 100644 index 000000000..992afc22b --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/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_11x8_i4_perm1/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/input-0.json new file mode 100644 index 000000000..e5aa054ae --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/input-0.json @@ -0,0 +1,115 @@ +{ + "type": "int32", + "data": [ + [ + 1, + 3, + -3, + 6, + 3, + 1, + 0, + 2 + ], + [ + 1, + 3, + -1, + -3, + 3, + -3, + -7, + -6 + ], + [ + -7, + 0, + 3, + -3, + -7, + 2, + -2, + 4 + ], + [ + -2, + 2, + 2, + -3, + 4, + 5, + 5, + -3 + ], + [ + -3, + -3, + -5, + 6, + 7, + 5, + -7, + 7 + ], + [ + 5, + -6, + -7, + -4, + 0, + -2, + 2, + 3 + ], + [ + 0, + -2, + 1, + -6, + -7, + 4, + -5, + 7 + ], + [ + 1, + 0, + 5, + -4, + 1, + -1, + 0, + 6 + ], + [ + 7, + -1, + -2, + -3, + -2, + -1, + -6, + -4 + ], + [ + 4, + 3, + -6, + 6, + -5, + -5, + -7, + -5 + ], + [ + -5, + 6, + -1, + -5, + -7, + -4, + -1, + -1 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/test.json new file mode 100644 index 000000000..f05ee102a --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongInputType_11x8_i4_perm1/test.json @@ -0,0 +1,64 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 2, + 0 + ], + size: [ + 3, + 2 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 8 + ], + type: "INT4" + }, + { + name: "result-0", + shape: [ + 3, + 2 + ], + type: "INT4" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |