From c4092d6680fe919b2631f273cdfb3342fcae4bcc Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:48 +0100 Subject: Updating SELECT tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I01b98dc43d4fccfde79e04194846b70604e6cdf5 --- .../select/select_20_i8/Conformance-result-0.json | 25 +++++++++ operators/ew_ternary/select/select_20_i8/desc.json | 24 ++++++++ .../ew_ternary/select/select_20_i8/input-0.json | 25 +++++++++ .../ew_ternary/select/select_20_i8/input-1.json | 25 +++++++++ .../ew_ternary/select/select_20_i8/input-2.json | 6 ++ operators/ew_ternary/select/select_20_i8/test.json | 65 ++++++++++++++++++++++ 6 files changed, 170 insertions(+) create mode 100644 operators/ew_ternary/select/select_20_i8/Conformance-result-0.json create mode 100644 operators/ew_ternary/select/select_20_i8/desc.json create mode 100644 operators/ew_ternary/select/select_20_i8/input-0.json create mode 100644 operators/ew_ternary/select/select_20_i8/input-1.json create mode 100644 operators/ew_ternary/select/select_20_i8/input-2.json create mode 100644 operators/ew_ternary/select/select_20_i8/test.json (limited to 'operators/ew_ternary/select/select_20_i8') diff --git a/operators/ew_ternary/select/select_20_i8/Conformance-result-0.json b/operators/ew_ternary/select/select_20_i8/Conformance-result-0.json new file mode 100644 index 000000000..d5806fbd4 --- /dev/null +++ b/operators/ew_ternary/select/select_20_i8/Conformance-result-0.json @@ -0,0 +1,25 @@ +{ + "type": "int32", + "data": [ + 33, + -45, + 33, + -34, + -109, + -8, + 75, + 33, + 33, + 33, + 33, + 33, + -44, + 33, + 16, + 43, + 112, + -17, + 33, + 85 + ] +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_20_i8/desc.json b/operators/ew_ternary/select/select_20_i8/desc.json new file mode 100644 index 000000000..8270b964d --- /dev/null +++ b/operators/ew_ternary/select/select_20_i8/desc.json @@ -0,0 +1,24 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1", + "input-2" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy", + "input-2.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_ternary/select/select_20_i8/input-0.json b/operators/ew_ternary/select/select_20_i8/input-0.json new file mode 100644 index 000000000..c7af84290 --- /dev/null +++ b/operators/ew_ternary/select/select_20_i8/input-0.json @@ -0,0 +1,25 @@ +{ + "type": "bool", + "data": [ + false, + true, + false, + true, + true, + true, + true, + false, + false, + false, + false, + false, + true, + false, + true, + true, + true, + true, + false, + true + ] +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_20_i8/input-1.json b/operators/ew_ternary/select/select_20_i8/input-1.json new file mode 100644 index 000000000..1c8016ef2 --- /dev/null +++ b/operators/ew_ternary/select/select_20_i8/input-1.json @@ -0,0 +1,25 @@ +{ + "type": "int32", + "data": [ + -23, + -45, + 103, + -34, + -109, + -8, + 75, + -80, + -10, + -95, + 47, + -7, + -44, + -70, + 16, + 43, + 112, + -17, + -87, + 85 + ] +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_20_i8/input-2.json b/operators/ew_ternary/select/select_20_i8/input-2.json new file mode 100644 index 000000000..b6b28a2d6 --- /dev/null +++ b/operators/ew_ternary/select/select_20_i8/input-2.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + 33 + ] +} \ No newline at end of file diff --git a/operators/ew_ternary/select/select_20_i8/test.json b/operators/ew_ternary/select/select_20_i8/test.json new file mode 100644 index 000000000..f1b69ddcb --- /dev/null +++ b/operators/ew_ternary/select/select_20_i8/test.json @@ -0,0 +1,65 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SELECT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1", + "input-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 20 + ], + type: "INT8" + }, + { + name: "input-2", + shape: [ + 1 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 20 + ], + type: "INT8" + } + ], + inputs: [ + "input-0", + "input-1", + "input-2" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1