From 4d31d66df328978cf99dd65266aec0e24e334e8e Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:47 +0100 Subject: Updating TABLE tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I38056447601cf32d9012bb3ce00613ec3c7078e6 --- .../table/table_20_i8/Conformance-result-0.json | 25 ++ operators/ew_binary/table/table_20_i8/desc.json | 20 ++ operators/ew_binary/table/table_20_i8/input-0.json | 25 ++ operators/ew_binary/table/table_20_i8/test.json | 307 +++++++++++++++++++++ 4 files changed, 377 insertions(+) create mode 100644 operators/ew_binary/table/table_20_i8/Conformance-result-0.json create mode 100644 operators/ew_binary/table/table_20_i8/desc.json create mode 100644 operators/ew_binary/table/table_20_i8/input-0.json create mode 100644 operators/ew_binary/table/table_20_i8/test.json (limited to 'operators/ew_binary/table/table_20_i8') diff --git a/operators/ew_binary/table/table_20_i8/Conformance-result-0.json b/operators/ew_binary/table/table_20_i8/Conformance-result-0.json new file mode 100644 index 000000000..58aa885d7 --- /dev/null +++ b/operators/ew_binary/table/table_20_i8/Conformance-result-0.json @@ -0,0 +1,25 @@ +{ + "type": "int32", + "data": [ + 85, + 0, + 91, + -111, + 33, + -1, + 71, + -1, + -1, + -18, + -1, + -104, + 71, + -112, + 71, + -1, + -1, + 46, + 0, + -1 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/table/table_20_i8/desc.json b/operators/ew_binary/table/table_20_i8/desc.json new file mode 100644 index 000000000..3cd43b509 --- /dev/null +++ b/operators/ew_binary/table/table_20_i8/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/ew_binary/table/table_20_i8/input-0.json b/operators/ew_binary/table/table_20_i8/input-0.json new file mode 100644 index 000000000..994e5ed01 --- /dev/null +++ b/operators/ew_binary/table/table_20_i8/input-0.json @@ -0,0 +1,25 @@ +{ + "type": "int32", + "data": [ + 70, + -103, + -120, + -42, + 38, + 63, + 82, + -41, + -85, + -122, + -91, + -112, + 92, + -60, + 82, + 13, + 9, + -12, + 81, + -117 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/table/table_20_i8/test.json b/operators/ew_binary/table/table_20_i8/test.json new file mode 100644 index 000000000..254ceee47 --- /dev/null +++ b/operators/ew_binary/table/table_20_i8/test.json @@ -0,0 +1,307 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "TABLE", + attribute_type: "TableAttribute", + attribute: { + table: [ + 70, + 0, + 39, + 0, + -16, + -1, + -18, + -1, + 91, + 0, + -106, + -1, + 50, + 0, + -77, + -1, + -104, + -1, + 6, + 0, + 121, + 0, + 60, + 0, + 66, + 0, + 55, + 0, + 73, + 0, + 3, + 0, + -96, + -1, + 86, + 0, + -13, + -1, + 0, + 0, + -34, + -1, + -82, + -1, + 109, + 0, + 72, + 0, + 36, + 0, + -25, + -1, + 82, + 0, + 11, + 0, + -15, + -1, + -13, + -1, + -70, + -1, + -105, + -1, + 13, + 0, + 99, + 0, + -112, + -1, + 91, + 0, + 83, + 0, + -58, + -1, + 33, + 0, + -86, + -1, + 66, + 0, + 51, + 0, + -38, + -1, + -111, + -1, + 120, + 0, + -14, + -1, + 100, + 0, + 45, + 0, + 71, + 0, + 66, + 0, + -79, + -1, + -35, + -1, + -9, + -1, + -1, + -1, + -117, + -1, + 11, + 0, + -89, + -1, + 62, + 0, + 46, + 0, + 108, + 0, + 62, + 0, + -35, + -1, + 119, + 0, + -23, + -1, + -45, + -1, + 103, + 0, + -34, + -1, + -109, + -1, + -8, + -1, + 75, + 0, + -80, + -1, + -10, + -1, + -95, + -1, + 47, + 0, + -7, + -1, + -44, + -1, + -70, + -1, + 16, + 0, + 43, + 0, + 112, + 0, + -17, + -1, + -87, + -1, + 85, + 0, + 33, + 0, + 51, + 0, + -104, + -1, + -49, + -1, + 68, + 0, + 85, + 0, + -17, + -1, + 78, + 0, + 87, + 0, + -29, + -1, + 101, + 0, + -55, + -1, + -67, + -1, + 46, + 0, + 35, + 0, + -93, + -1, + 85, + 0, + -77, + -1, + 78, + 0, + -127, + -1, + 75, + 0, + 73, + 0, + 71, + 0, + 42, + 0, + -8, + -1, + 52, + 0, + -58, + -1, + 71, + 0, + 14, + 0, + -11, + -1, + 1, + 0, + 17, + 0, + -119, + -1, + -93, + -1, + -66, + -1, + -99, + -1, + -16, + -1, + 43, + 0, + 39, + 0, + -8, + -1, + 90, + 0, + 16, + 0, + -108, + -1, + 67, + 0, + 19, + 0 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 20 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1