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 --- .../pad/pad_6_f16_pad01/Conformance-result-0.json | 12 +++++ .../data_layout/pad/pad_6_f16_pad01/desc.json | 23 +++++++++ .../data_layout/pad/pad_6_f16_pad01/input-0.json | 11 +++++ .../data_layout/pad/pad_6_f16_pad01/test.json | 55 ++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json create mode 100644 operators/data_layout/pad/pad_6_f16_pad01/desc.json create mode 100644 operators/data_layout/pad/pad_6_f16_pad01/input-0.json create mode 100644 operators/data_layout/pad/pad_6_f16_pad01/test.json (limited to 'operators/data_layout/pad/pad_6_f16_pad01') diff --git a/operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json b/operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json new file mode 100644 index 000000000..870847a43 --- /dev/null +++ b/operators/data_layout/pad/pad_6_f16_pad01/Conformance-result-0.json @@ -0,0 +1,12 @@ +{ + "type": "float16", + "data": [ + 1.11328125, + -1.2216796875, + -0.133056640625, + -1.8251953125, + -1.3828125, + 0.732421875, + -0.2445068359375 + ] +} \ No newline at end of file diff --git a/operators/data_layout/pad/pad_6_f16_pad01/desc.json b/operators/data_layout/pad/pad_6_f16_pad01/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/data_layout/pad/pad_6_f16_pad01/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/pad/pad_6_f16_pad01/input-0.json b/operators/data_layout/pad/pad_6_f16_pad01/input-0.json new file mode 100644 index 000000000..94cd5a5a1 --- /dev/null +++ b/operators/data_layout/pad/pad_6_f16_pad01/input-0.json @@ -0,0 +1,11 @@ +{ + "type": "float16", + "data": [ + 1.11328125, + -1.2216796875, + -0.133056640625, + -1.8251953125, + -1.3828125, + 0.732421875 + ] +} \ No newline at end of file diff --git a/operators/data_layout/pad/pad_6_f16_pad01/test.json b/operators/data_layout/pad/pad_6_f16_pad01/test.json new file mode 100644 index 000000000..c73faebc5 --- /dev/null +++ b/operators/data_layout/pad/pad_6_f16_pad01/test.json @@ -0,0 +1,55 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "PAD", + attribute_type: "PadAttribute", + attribute: { + padding: [ + 0, + 1 + ], + pad_const_int: 0, + pad_const_fp: -0.244507 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 6 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 7 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1