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/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0 | |
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/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0')
3 files changed, 183 insertions, 0 deletions
diff --git a/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/desc.json b/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/desc.json new file mode 100644 index 000000000..584857b19 --- /dev/null +++ b/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/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 Rank does not match output rank", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/input-0.json b/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/input-0.json new file mode 100644 index 000000000..0fd5a0891 --- /dev/null +++ b/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/input-0.json @@ -0,0 +1,101 @@ +{ + "type": "float32", + "data": [ + [ + 0.04052734375, + 0.349609375, + 0.56640625, + 0.6328125, + 0.5703125, + 0.69921875 + ], + [ + 0.06689453125, + 0.5625, + 0.1357421875, + 0.427734375, + 0.1640625, + 0.66015625 + ], + [ + 0.291015625, + 0.3203125, + 0.59375, + 0.87109375, + 0.5703125, + 0.06884765625 + ], + [ + 0.86328125, + 0.111328125, + 0.93359375, + 0.0869140625, + 0.98046875, + 0.5390625 + ], + [ + 0.07080078125, + 0.310546875, + 0.057861328125, + 0.79296875, + 0.033203125, + 0.609375 + ], + [ + 0.162109375, + 0.224609375, + 0.07275390625, + 0.6875, + 0.1923828125, + 0.74609375 + ], + [ + 0.33984375, + 0.373046875, + 0.1416015625, + 0.259765625, + 0.0155029296875, + 0.3125 + ], + [ + 0.185546875, + 0.84375, + 0.458984375, + 0.1923828125, + 0.29296875, + 0.419921875 + ], + [ + 0.8203125, + 0.33203125, + 0.123046875, + 0.359375, + 0.97265625, + 0.90234375 + ], + [ + 0.0927734375, + 0.921875, + 0.95703125, + 0.61328125, + 0.53515625, + 0.85546875 + ], + [ + 0.66015625, + 0.259765625, + 0.80859375, + 0.0625, + 0.95703125, + 0.96484375 + ], + [ + 0.71484375, + 0.126953125, + 0.62890625, + 0.69140625, + 0.96875, + 0.78515625 + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/test.json b/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/test.json new file mode 100644 index 000000000..02b87150c --- /dev/null +++ b/operators/data_layout/transpose/transpose_ERRORIF_RankMismatch_12x6_bf16_perm0/test.json @@ -0,0 +1,61 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "TRANSPOSE", + attribute_type: "TransposeAttribute", + attribute: { + perms: [ + 1, + 0 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 6 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 6, + 12, + 1 + ], + type: "BF16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |