diff options
author | James Ward <james.ward@arm.com> | 2022-11-21 11:51:55 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2022-11-21 11:51:55 +0000 |
commit | d8e6b6b5148a3d61b378e6e5259ca421a709abef (patch) | |
tree | 2ec785497e47a644c12d57f22a306b0749d22735 /operators/data_layout/concat/concat_20_f16_axis0 | |
parent | da333bee0fae850bf90f422d68902884b6063cce (diff) | |
download | conformance_tests-d8e6b6b5148a3d61b378e6e5259ca421a709abef.tar.gz |
Create MI tests for Data Layout: CONCAT, PAD, RESHAPE, REVERSE, SLICE, TILE, TRANSPOSE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Icbbe8f63e35d04a3b2cc64bd760ca92c22fd4aa7
Diffstat (limited to 'operators/data_layout/concat/concat_20_f16_axis0')
5 files changed, 249 insertions, 0 deletions
diff --git a/operators/data_layout/concat/concat_20_f16_axis0/Conformance-result-0.json b/operators/data_layout/concat/concat_20_f16_axis0/Conformance-result-0.json new file mode 100644 index 000000000..579b6d4c4 --- /dev/null +++ b/operators/data_layout/concat/concat_20_f16_axis0/Conformance-result-0.json @@ -0,0 +1,45 @@ +{ + "type": "float16", + "data": [ + -0.226318359375, + -1.0908203125, + 0.2183837890625, + -1.7451171875, + 1.310546875, + 0.52685546875, + 1.0322265625, + -0.58203125, + 1.8828125, + 1.572265625, + 1.11328125, + -1.2216796875, + -0.133056640625, + -1.8251953125, + -1.3828125, + 0.732421875, + 0.97900390625, + 1.8701171875, + -0.69677734375, + -0.51806640625, + -0.12176513671875, + -1.2421875, + -1.48046875, + -0.09716796875, + -1.0927734375, + 0.67919921875, + -0.25146484375, + 1.3310546875, + 0.80126953125, + -0.75048828125, + 1.3291015625, + 1.21875, + -0.4501953125, + -0.8466796875, + 0.72998046875, + -1.44140625, + -1.2001953125, + -1.970703125, + 1.1474609375, + 0.6591796875 + ] +}
\ No newline at end of file diff --git a/operators/data_layout/concat/concat_20_f16_axis0/desc.json b/operators/data_layout/concat/concat_20_f16_axis0/desc.json new file mode 100644 index 000000000..5ee7961df --- /dev/null +++ b/operators/data_layout/concat/concat_20_f16_axis0/desc.json @@ -0,0 +1,25 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ], + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/concat/concat_20_f16_axis0/input-0.json b/operators/data_layout/concat/concat_20_f16_axis0/input-0.json new file mode 100644 index 000000000..30aa78db3 --- /dev/null +++ b/operators/data_layout/concat/concat_20_f16_axis0/input-0.json @@ -0,0 +1,25 @@ +{ + "type": "float16", + "data": [ + -0.226318359375, + -1.0908203125, + 0.2183837890625, + -1.7451171875, + 1.310546875, + 0.52685546875, + 1.0322265625, + -0.58203125, + 1.8828125, + 1.572265625, + 1.11328125, + -1.2216796875, + -0.133056640625, + -1.8251953125, + -1.3828125, + 0.732421875, + 0.97900390625, + 1.8701171875, + -0.69677734375, + -0.51806640625 + ] +}
\ No newline at end of file diff --git a/operators/data_layout/concat/concat_20_f16_axis0/input-1.json b/operators/data_layout/concat/concat_20_f16_axis0/input-1.json new file mode 100644 index 000000000..fe9f2724b --- /dev/null +++ b/operators/data_layout/concat/concat_20_f16_axis0/input-1.json @@ -0,0 +1,15 @@ +{ + "type": "float16", + "data": [ + -0.12176513671875, + -1.2421875, + -1.48046875, + -0.09716796875, + -1.0927734375, + 0.67919921875, + -0.25146484375, + 1.3310546875, + 0.80126953125, + -0.75048828125 + ] +}
\ No newline at end of file diff --git a/operators/data_layout/concat/concat_20_f16_axis0/test.json b/operators/data_layout/concat/concat_20_f16_axis0/test.json new file mode 100644 index 000000000..886e4269c --- /dev/null +++ b/operators/data_layout/concat/concat_20_f16_axis0/test.json @@ -0,0 +1,139 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-3" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-4" + ] + }, + { + op: "CONCAT", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0", + "input-1", + "const-2", + "const-3", + "const-4" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 10 + ], + type: "FP16" + }, + { + name: "const-2", + shape: [ + 5 + ], + type: "FP16", + data: [ + 81, + 61, + 224, + 60, + 52, + 183, + 198, + 186, + 215, + 57 + ] + }, + { + name: "const-3", + shape: [ + 2 + ], + type: "FP16", + data: [ + 196, + 189, + 205, + 188 + ] + }, + { + name: "const-4", + shape: [ + 3 + ], + type: "FP16", + data: [ + 226, + 191, + 151, + 60, + 70, + 57 + ] + }, + { + name: "result-0", + shape: [ + 40 + ], + type: "FP16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |