From 26c9e26c22c744dd05a2fe09763ac09bc09711db Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:06:33 +0100 Subject: Updating BITWISE_AND tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: Ieab852fd94e19ba936c276d6007835ea84ae3671 --- .../bitwise_and_1x44_i8/Conformance-result-0.json | 281 +++++++++++++++++++++ .../bitwise_and/bitwise_and_1x44_i8/desc.json | 22 ++ .../bitwise_and/bitwise_and_1x44_i8/input-0.json | 51 ++++ .../bitwise_and/bitwise_and_1x44_i8/input-1.json | 281 +++++++++++++++++++++ .../bitwise_and/bitwise_and_1x44_i8/test.json | 59 +++++ 5 files changed, 694 insertions(+) create mode 100644 operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/Conformance-result-0.json create mode 100644 operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/desc.json create mode 100644 operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/input-0.json create mode 100644 operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/input-1.json create mode 100644 operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/test.json (limited to 'operators/ew_binary/bitwise_and/bitwise_and_1x44_i8') diff --git a/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/Conformance-result-0.json b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/Conformance-result-0.json new file mode 100644 index 000000000..556ce2cc5 --- /dev/null +++ b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/Conformance-result-0.json @@ -0,0 +1,281 @@ +{ + "type": "int32", + "data": [ + [ + 0, + 4, + 1, + 0, + 9, + 34, + -88, + -120, + -32, + 0, + 2, + -88, + 80, + 0, + -112, + 3, + 1, + 32, + 16, + 4, + 23, + 9, + 66, + 0, + 16, + -122, + -40, + 34, + 122, + -78, + -126, + -32, + 60, + 72, + 8, + 33, + 18, + -116, + 81, + -128, + 66, + -118, + -58, + 32 + ], + [ + 12, + 96, + 0, + 17, + -127, + -128, + 2, + 24, + -64, + 3, + 2, + 48, + 72, + 16, + 20, + 65, + 16, + 0, + 16, + 5, + -128, + 4, + 0, + -127, + 24, + -122, + 72, + 4, + 8, + -92, + -58, + 72, + 4, + 66, + -120, + 56, + 0, + -114, + 75, + 0, + 34, + 1, + -120, + 32 + ], + [ + 0, + -107, + 1, + 0, + 9, + -126, + -84, + -100, + -80, + 0, + 33, + -96, + 8, + 16, + -124, + 2, + 3, + 34, + 0, + 12, + 21, + 4, + 66, + -56, + 24, + 7, + -56, + -123, + 34, + 52, + -62, + -24, + 118, + 72, + -128, + -111, + 66, + -116, + 11, + -56, + 96, + 64, + -87, + 0 + ], + [ + 10, + -15, + 0, + 0, + 0, + -128, + 10, + 5, + 80, + 32, + 0, + -128, + 88, + 16, + -128, + 65, + 2, + 34, + 0, + 13, + -112, + 11, + 10, + 12, + 26, + -121, + -104, + 40, + 58, + 50, + 64, + 64, + 82, + 26, + 8, + 42, + 80, + -118, + 24, + -120, + 32, + 10, + 11, + 8 + ], + [ + 14, + 84, + 1, + 0, + 0, + -127, + -78, + 17, + 32, + 10, + 7, + 0, + 66, + 0, + 20, + 67, + 2, + 34, + 0, + 9, + -124, + 15, + 72, + 76, + 2, + 4, + -112, + 47, + 88, + 36, + -128, + 96, + 28, + 0, + -120, + -112, + 0, + 4, + 81, + 8, + 104, + -53, + 98, + 8 + ], + [ + 12, + 53, + 1, + 1, + -127, + 35, + 50, + -99, + -128, + 11, + 1, + 80, + 64, + 0, + 20, + 1, + 18, + 0, + 16, + 13, + -125, + 2, + 67, + -51, + 26, + 7, + -48, + 104, + 123, + 0, + -58, + -96, + 110, + 2, + -120, + -70, + 66, + -128, + 0, + 8, + 104, + -117, + -53, + 1 + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/desc.json b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/ew_binary/bitwise_and/bitwise_and_1x44_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_and/bitwise_and_1x44_i8/input-0.json b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/input-0.json new file mode 100644 index 000000000..bb2f5051a --- /dev/null +++ b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/input-0.json @@ -0,0 +1,51 @@ +{ + "type": "int32", + "data": [ + [ + 14, + -11, + 1, + 17, + -119, + -93, + -66, + -99, + -16, + 43, + 39, + -8, + 90, + 16, + -108, + 67, + 19, + 34, + 16, + 13, + -105, + 15, + 75, + -51, + 26, + -121, + -40, + -17, + 123, + -74, + -58, + -24, + 126, + 90, + -120, + -69, + 82, + -114, + 91, + -56, + 106, + -53, + -17, + 41 + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/input-1.json b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/input-1.json new file mode 100644 index 000000000..03d964646 --- /dev/null +++ b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/input-1.json @@ -0,0 +1,281 @@ +{ + "type": "int32", + "data": [ + [ + -96, + 14, + 1, + 72, + 127, + 42, + -24, + -24, + -22, + 80, + -46, + -86, + -43, + -123, + -101, + -105, + 69, + 56, + 50, + -10, + 55, + -87, + 102, + 0, + 112, + -90, + -1, + 50, + -2, + -14, + -86, + -31, + -67, + -51, + 47, + 33, + 27, + -36, + 117, + -106, + -41, + -98, + -42, + 118 + ], + [ + -35, + 104, + -2, + 51, + -11, + -60, + 67, + 120, + -61, + 71, + -62, + 55, + 73, + -13, + 60, + -59, + -108, + -104, + -14, + 103, + -96, + -12, + 52, + -77, + 56, + -50, + 79, + 20, + 12, + -83, + -10, + 91, + -124, + 66, + -2, + 56, + 41, + -18, + -49, + 32, + -93, + 21, + -104, + 38 + ], + [ + 32, + -107, + 65, + -22, + 73, + -118, + -83, + -2, + -80, + -44, + 41, + -92, + 45, + -102, + -84, + 22, + 75, + -85, + -52, + 108, + 125, + 20, + -14, + -40, + 28, + 23, + -53, + -123, + -90, + 117, + -21, + -5, + -9, + 72, + -112, + -107, + -58, + -4, + 43, + -3, + -16, + 112, + -87, + 18 + ], + [ + 10, + -7, + 78, + -60, + 116, + -44, + 11, + 5, + 89, + -16, + -56, + -123, + -35, + 83, + -126, + 101, + 10, + -93, + -51, + 13, + -48, + -101, + 42, + 44, + -98, + -57, + -66, + 40, + 58, + 58, + 112, + 68, + -46, + -101, + 29, + 106, + 121, + -70, + -68, + -119, + -92, + 14, + 11, + -34 + ], + [ + -49, + 84, + -11, + 78, + 118, + -47, + -77, + 115, + 34, + -54, + 31, + 3, + 103, + -63, + 125, + 111, + -82, + -86, + 8, + -117, + -52, + -17, + 120, + 126, + -90, + 100, + -105, + 63, + 88, + 100, + -71, + 100, + -99, + 4, + -8, + -48, + -123, + 69, + -43, + 41, + -23, + -33, + 98, + -104 + ], + [ + 60, + 63, + -31, + -61, + -127, + 111, + 114, + -67, + -120, + -97, + -111, + 84, + 100, + -89, + 63, + -83, + -34, + 25, + 56, + 95, + -117, + -78, + -57, + -49, + 127, + 71, + -46, + 120, + -1, + 0, + -17, + -92, + 111, + -125, + -84, + -70, + -57, + -95, + -124, + 45, + 120, + -97, + -53, + 1 + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/test.json b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/test.json new file mode 100644 index 000000000..7a925017c --- /dev/null +++ b/operators/ew_binary/bitwise_and/bitwise_and_1x44_i8/test.json @@ -0,0 +1,59 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "BITWISE_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 44 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 6, + 44 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 6, + 44 + ], + type: "INT8" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1