From d73c0846bc7be1685aff6a4e70e4ab4c03ab75c3 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:12 +0100 Subject: Updating CONCAT tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: Ia22d8ed60a228547c77bcfa0076074a39e4778b3 --- .../concat_47_i16_axis0/Conformance-result-0.json | 99 +++++++++++ .../concat/concat_47_i16_axis0/desc.json | 20 +++ .../concat/concat_47_i16_axis0/input-0.json | 52 ++++++ .../concat/concat_47_i16_axis0/test.json | 184 +++++++++++++++++++++ 4 files changed, 355 insertions(+) create mode 100644 operators/data_layout/concat/concat_47_i16_axis0/Conformance-result-0.json create mode 100644 operators/data_layout/concat/concat_47_i16_axis0/desc.json create mode 100644 operators/data_layout/concat/concat_47_i16_axis0/input-0.json create mode 100644 operators/data_layout/concat/concat_47_i16_axis0/test.json (limited to 'operators/data_layout/concat/concat_47_i16_axis0') diff --git a/operators/data_layout/concat/concat_47_i16_axis0/Conformance-result-0.json b/operators/data_layout/concat/concat_47_i16_axis0/Conformance-result-0.json new file mode 100644 index 000000000..79985722a --- /dev/null +++ b/operators/data_layout/concat/concat_47_i16_axis0/Conformance-result-0.json @@ -0,0 +1,99 @@ +{ + "type": "int32", + "data": [ + -11129, + -17898, + 4227, + 11128, + 28855, + -4119, + -22238, + 21802, + 8504, + 13124, + -26397, + -12297, + 17553, + 21774, + -4246, + 19973, + 22393, + -7375, + 26089, + -13873, + -17069, + 11960, + 8962, + -23610, + 21806, + -19667, + 19981, + -32286, + 19453, + 18803, + 18373, + 10803, + -1864, + 13445, + -14607, + 18397, + 3646, + -2693, + 367, + 4505, + -30326, + -23607, + -16681, + -25263, + -3958, + 11036, + 10120, + -1895, + 23270, + 4275, + -27578, + 17366, + 4889, + 8828, + 4284, + 3511, + -26833, + 3880, + 19327, + -12849, + 6739, + -30749, + -9995, + -4148, + 31636, + -18705, + -14645, + -5995, + 32287, + 23160, + -30495, + -17437, + 21081, + -28948, + 23309, + -14328, + 27371, + -13528, + -4305, + 10611, + -24493, + 3737, + 328, + 18605, + 32512, + 10768, + -5952, + -6136, + -5377, + 20579, + -11717, + -21826, + -10860, + -31280 + ] +} \ No newline at end of file diff --git a/operators/data_layout/concat/concat_47_i16_axis0/desc.json b/operators/data_layout/concat/concat_47_i16_axis0/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/data_layout/concat/concat_47_i16_axis0/desc.json @@ -0,0 +1,20 @@ +{ + "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" + ] +} \ No newline at end of file diff --git a/operators/data_layout/concat/concat_47_i16_axis0/input-0.json b/operators/data_layout/concat/concat_47_i16_axis0/input-0.json new file mode 100644 index 000000000..c9ece2763 --- /dev/null +++ b/operators/data_layout/concat/concat_47_i16_axis0/input-0.json @@ -0,0 +1,52 @@ +{ + "type": "int32", + "data": [ + -11129, + -17898, + 4227, + 11128, + 28855, + -4119, + -22238, + 21802, + 8504, + 13124, + -26397, + -12297, + 17553, + 21774, + -4246, + 19973, + 22393, + -7375, + 26089, + -13873, + -17069, + 11960, + 8962, + -23610, + 21806, + -19667, + 19981, + -32286, + 19453, + 18803, + 18373, + 10803, + -1864, + 13445, + -14607, + 18397, + 3646, + -2693, + 367, + 4505, + -30326, + -23607, + -16681, + -25263, + -3958, + 11036, + 10120 + ] +} \ No newline at end of file diff --git a/operators/data_layout/concat/concat_47_i16_axis0/test.json b/operators/data_layout/concat/concat_47_i16_axis0/test.json new file mode 100644 index 000000000..02dfbb228 --- /dev/null +++ b/operators/data_layout/concat/concat_47_i16_axis0/test.json @@ -0,0 +1,184 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "CONCAT", + attribute_type: "AxisAttribute", + attribute: { + axis: 0 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 47 + ], + type: "INT16" + }, + { + name: "const-1", + shape: [ + 23 + ], + type: "INT16", + data: [ + 153, + 248, + 230, + 90, + 179, + 16, + 70, + 148, + 214, + 67, + 25, + 19, + 124, + 34, + 188, + 16, + 183, + 13, + 47, + 151, + 40, + 15, + 127, + 75, + 207, + 205, + 83, + 26, + 227, + 135, + 245, + 216, + 204, + 239, + 148, + 123, + 239, + 182, + 203, + 198, + 149, + 232, + 31, + 126, + 120, + 90 + ] + }, + { + name: "const-2", + shape: [ + 24 + ], + type: "INT16", + data: [ + 225, + 136, + 227, + 187, + 89, + 82, + 236, + 142, + 13, + 91, + 8, + 200, + 235, + 106, + 40, + 203, + 47, + 239, + 115, + 41, + 83, + 160, + 153, + 14, + 72, + 1, + 173, + 72, + 0, + 127, + 16, + 42, + 192, + 232, + 8, + 232, + 255, + 234, + 99, + 80, + 59, + 210, + 190, + 170, + 148, + 213, + 208, + 133 + ] + }, + { + name: "result-0", + shape: [ + 94 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1