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