diff options
author | James Ward <james.ward@arm.com> | 2023-01-17 17:22:19 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2023-01-26 12:10:28 +0000 |
commit | e8c4df459931d92df458f42adfc6d164a701e2e4 (patch) | |
tree | 1760d2ab225e44db0434bc6fa73694f6dd952132 /operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5 | |
parent | de22a661323bcad18a67a318d9cda5ce9f2699a8 (diff) | |
download | conformance_tests-e8c4df459931d92df458f42adfc6d164a701e2e4.tar.gz |
Create MI tests for Data Layout: SLICE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I1be7f445a53791ca1395ef484725825b051afba3
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5')
3 files changed, 99 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/desc.json b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/desc.json new file mode 100644 index 000000000..6a61ccfd5 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/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": "Size does not match output dimension", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/input-0.json b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/input-0.json new file mode 100644 index 000000000..a623e1d81 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/input-0.json @@ -0,0 +1,17 @@ +{ + "type": "float16", + "data": [ + 0.1468505859375, + 0.32177734375, + 0.317138671875, + 0.9736328125, + 0.5830078125, + 0.33740234375, + 0.298828125, + 0.319091796875, + 0.71240234375, + 0.54931640625, + 0.62353515625, + 0.470458984375 + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/test.json b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/test.json new file mode 100644 index 000000000..7fddc0527 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_SizeOutputShapeMismatch_12_f16_perm5/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: [ + 1 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 2 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |