From d8e6b6b5148a3d61b378e6e5259ca421a709abef Mon Sep 17 00:00:00 2001 From: James Ward Date: Mon, 21 Nov 2022 11:51:55 +0000 Subject: Create MI tests for Data Layout: CONCAT, PAD, RESHAPE, REVERSE, SLICE, TILE, TRANSPOSE Signed-off-by: James Ward Change-Id: Icbbe8f63e35d04a3b2cc64bd760ca92c22fd4aa7 --- .../reverse_31_f32_axis0/Conformance-result-0.json | 36 ++++++++++++++++ .../reverse/reverse_31_f32_axis0/desc.json | 23 ++++++++++ .../reverse/reverse_31_f32_axis0/input-0.json | 36 ++++++++++++++++ .../reverse/reverse_31_f32_axis0/test.json | 50 ++++++++++++++++++++++ 4 files changed, 145 insertions(+) create mode 100644 operators/data_layout/reverse/reverse_31_f32_axis0/Conformance-result-0.json create mode 100644 operators/data_layout/reverse/reverse_31_f32_axis0/desc.json create mode 100644 operators/data_layout/reverse/reverse_31_f32_axis0/input-0.json create mode 100644 operators/data_layout/reverse/reverse_31_f32_axis0/test.json (limited to 'operators/data_layout/reverse/reverse_31_f32_axis0') diff --git a/operators/data_layout/reverse/reverse_31_f32_axis0/Conformance-result-0.json b/operators/data_layout/reverse/reverse_31_f32_axis0/Conformance-result-0.json new file mode 100644 index 000000000..311ba9ccc --- /dev/null +++ b/operators/data_layout/reverse/reverse_31_f32_axis0/Conformance-result-0.json @@ -0,0 +1,36 @@ +{ + "type": "float32", + "data": [ + -0.15249107778072357, + 0.8894373774528503, + -1.6398085355758667, + -1.9091516733169556, + -1.3321083784103394, + 1.2560815811157227, + -0.3744525611400604, + 0.657254159450531, + 1.1355928182601929, + 0.2281286120414734, + 0.6476660370826721, + -0.825624942779541, + -0.8744644522666931, + -1.7667890787124634, + -1.0642420053482056, + 1.4136122465133667, + -0.3658854365348816, + -1.141661286354065, + -0.2531304359436035, + -1.8767286539077759, + -0.784199595451355, + 0.23682864010334015, + 0.21431760489940643, + 0.5388732552528381, + 1.059995412826538, + 0.2609444260597229, + -0.11561517417430878, + 0.6736118197441101, + -1.541879653930664, + -1.4408119916915894, + 0.2749647796154022 + ] +} \ No newline at end of file diff --git a/operators/data_layout/reverse/reverse_31_f32_axis0/desc.json b/operators/data_layout/reverse/reverse_31_f32_axis0/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/data_layout/reverse/reverse_31_f32_axis0/desc.json @@ -0,0 +1,23 @@ +{ + "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": 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/reverse/reverse_31_f32_axis0/input-0.json b/operators/data_layout/reverse/reverse_31_f32_axis0/input-0.json new file mode 100644 index 000000000..8dffbb41a --- /dev/null +++ b/operators/data_layout/reverse/reverse_31_f32_axis0/input-0.json @@ -0,0 +1,36 @@ +{ + "type": "float32", + "data": [ + 0.2749647796154022, + -1.4408119916915894, + -1.541879653930664, + 0.6736118197441101, + -0.11561517417430878, + 0.2609444260597229, + 1.059995412826538, + 0.5388732552528381, + 0.21431760489940643, + 0.23682864010334015, + -0.784199595451355, + -1.8767286539077759, + -0.2531304359436035, + -1.141661286354065, + -0.3658854365348816, + 1.4136122465133667, + -1.0642420053482056, + -1.7667890787124634, + -0.8744644522666931, + -0.825624942779541, + 0.6476660370826721, + 0.2281286120414734, + 1.1355928182601929, + 0.657254159450531, + -0.3744525611400604, + 1.2560815811157227, + -1.3321083784103394, + -1.9091516733169556, + -1.6398085355758667, + 0.8894373774528503, + -0.15249107778072357 + ] +} \ No newline at end of file diff --git a/operators/data_layout/reverse/reverse_31_f32_axis0/test.json b/operators/data_layout/reverse/reverse_31_f32_axis0/test.json new file mode 100644 index 000000000..217cf6fdb --- /dev/null +++ b/operators/data_layout/reverse/reverse_31_f32_axis0/test.json @@ -0,0 +1,50 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "REVERSE", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 31 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 31 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1