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_InputSizeStartLengthMismatch_1_bf16_perm0 | |
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_InputSizeStartLengthMismatch_1_bf16_perm0')
3 files changed, 88 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/desc.json b/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/desc.json new file mode 100644 index 000000000..6b0c73ca2 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_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": "rank of input not equal to length of start or size", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/input-0.json b/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/input-0.json new file mode 100644 index 000000000..bcb7256d4 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/input-0.json @@ -0,0 +1,6 @@ +{ + "type": "float32", + "data": [ + 0.134765625 + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/test.json b/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/test.json new file mode 100644 index 000000000..808a3f1a8 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_InputSizeStartLengthMismatch_1_bf16_perm0/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: [ + + ], + size: [ + + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + + ], + type: "BF16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |