From 2dc099cf781cc8e0aeae5e0e34a707c66f1c8c98 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:35 +0100 Subject: Updating BITWISE_XOR tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: Idcf196641a1ed84b4acc1d8d1bccf70840c4b1d1 --- .../bitwise_xor_9_i8/Conformance-result-0.json | 14 ++++++ .../bitwise_xor/bitwise_xor_9_i8/desc.json | 22 +++++++++ .../bitwise_xor/bitwise_xor_9_i8/input-0.json | 14 ++++++ .../bitwise_xor/bitwise_xor_9_i8/input-1.json | 6 +++ .../bitwise_xor/bitwise_xor_9_i8/test.json | 56 ++++++++++++++++++++++ 5 files changed, 112 insertions(+) create mode 100644 operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/Conformance-result-0.json create mode 100644 operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/desc.json create mode 100644 operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/input-0.json create mode 100644 operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/input-1.json create mode 100644 operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/test.json (limited to 'operators/ew_binary/bitwise_xor/bitwise_xor_9_i8') diff --git a/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/Conformance-result-0.json b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/Conformance-result-0.json new file mode 100644 index 000000000..4169fc36e --- /dev/null +++ b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/Conformance-result-0.json @@ -0,0 +1,14 @@ +{ + "type": "int32", + "data": [ + 62, + 80, + -93, + 104, + 96, + -11, + 18, + -103, + 113 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/desc.json b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/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/bitwise_xor/bitwise_xor_9_i8/input-0.json b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/input-0.json new file mode 100644 index 000000000..603160553 --- /dev/null +++ b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/input-0.json @@ -0,0 +1,14 @@ +{ + "type": "int32", + "data": [ + 13, + 99, + -112, + 91, + 83, + -58, + 33, + -86, + 66 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/input-1.json b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/input-1.json new file mode 100644 index 000000000..9addfcc13 --- /dev/null +++ b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "int32", + "data": [ + 51 + ] +} \ No newline at end of file diff --git a/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/test.json b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/test.json new file mode 100644 index 000000000..3736ea97f --- /dev/null +++ b/operators/ew_binary/bitwise_xor/bitwise_xor_9_i8/test.json @@ -0,0 +1,56 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "BITWISE_XOR", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 9 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 9 + ], + type: "INT8" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1