From bceaa684e5249be84669ca1b1d8260236f0c1a6e Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:39 +0100 Subject: Updating LOGICAL_OR tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: I6e92b765ed7963850f1829e3288ed103e3471455 --- .../logical_or_8_b/Conformance-result-0.json | 13 +++++ .../ew_binary/logical_or/logical_or_8_b/desc.json | 22 +++++++++ .../logical_or/logical_or_8_b/input-0.json | 13 +++++ .../logical_or/logical_or_8_b/input-1.json | 6 +++ .../ew_binary/logical_or/logical_or_8_b/test.json | 56 ++++++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 operators/ew_binary/logical_or/logical_or_8_b/Conformance-result-0.json create mode 100644 operators/ew_binary/logical_or/logical_or_8_b/desc.json create mode 100644 operators/ew_binary/logical_or/logical_or_8_b/input-0.json create mode 100644 operators/ew_binary/logical_or/logical_or_8_b/input-1.json create mode 100644 operators/ew_binary/logical_or/logical_or_8_b/test.json (limited to 'operators/ew_binary/logical_or/logical_or_8_b') diff --git a/operators/ew_binary/logical_or/logical_or_8_b/Conformance-result-0.json b/operators/ew_binary/logical_or/logical_or_8_b/Conformance-result-0.json new file mode 100644 index 000000000..bb614f80a --- /dev/null +++ b/operators/ew_binary/logical_or/logical_or_8_b/Conformance-result-0.json @@ -0,0 +1,13 @@ +{ + "type": "bool", + "data": [ + true, + true, + true, + true, + true, + true, + false, + true + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_or/logical_or_8_b/desc.json b/operators/ew_binary/logical_or/logical_or_8_b/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/ew_binary/logical_or/logical_or_8_b/desc.json @@ -0,0 +1,22 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.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/logical_or/logical_or_8_b/input-0.json b/operators/ew_binary/logical_or/logical_or_8_b/input-0.json new file mode 100644 index 000000000..bb614f80a --- /dev/null +++ b/operators/ew_binary/logical_or/logical_or_8_b/input-0.json @@ -0,0 +1,13 @@ +{ + "type": "bool", + "data": [ + true, + true, + true, + true, + true, + true, + false, + true + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_or/logical_or_8_b/input-1.json b/operators/ew_binary/logical_or/logical_or_8_b/input-1.json new file mode 100644 index 000000000..bd633455a --- /dev/null +++ b/operators/ew_binary/logical_or/logical_or_8_b/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "bool", + "data": [ + false + ] +} \ No newline at end of file diff --git a/operators/ew_binary/logical_or/logical_or_8_b/test.json b/operators/ew_binary/logical_or/logical_or_8_b/test.json new file mode 100644 index 000000000..becfc36cf --- /dev/null +++ b/operators/ew_binary/logical_or/logical_or_8_b/test.json @@ -0,0 +1,56 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "LOGICAL_OR", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 8 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 8 + ], + type: "BOOL" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1