From e926477175d04742f000925b4780d97e0c919e86 Mon Sep 17 00:00:00 2001 From: James Ward Date: Wed, 14 Dec 2022 12:16:05 +0000 Subject: Create MI tests for EW Binary: MINIMUM, MAXIMUM Signed-off-by: James Ward Change-Id: I59cc5c683e270dcea7ced52fc1d037a553ff544f --- .../maximum_2x11x4x2_f16/Conformance-result-0.json | 405 +++++++++++++++++++++ .../maximum/maximum_2x11x4x2_f16/desc.json | 25 ++ .../maximum/maximum_2x11x4x2_f16/input-0.json | 405 +++++++++++++++++++++ .../maximum/maximum_2x11x4x2_f16/input-1.json | 317 ++++++++++++++++ .../maximum/maximum_2x11x4x2_f16/test.json | 65 ++++ 5 files changed, 1217 insertions(+) create mode 100644 operators/ew_binary/maximum/maximum_2x11x4x2_f16/Conformance-result-0.json create mode 100644 operators/ew_binary/maximum/maximum_2x11x4x2_f16/desc.json create mode 100644 operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-0.json create mode 100644 operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-1.json create mode 100644 operators/ew_binary/maximum/maximum_2x11x4x2_f16/test.json (limited to 'operators/ew_binary/maximum/maximum_2x11x4x2_f16') diff --git a/operators/ew_binary/maximum/maximum_2x11x4x2_f16/Conformance-result-0.json b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/Conformance-result-0.json new file mode 100644 index 000000000..0ffb7272f --- /dev/null +++ b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/Conformance-result-0.json @@ -0,0 +1,405 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + -0.94189453125, + -0.180419921875 + ], + [ + -0.34423828125, + -1.29296875 + ], + [ + 1.2978515625, + 1.703125 + ], + [ + -1.0390625, + 1.71875 + ] + ], + [ + [ + -0.904296875, + 1.7001953125 + ], + [ + 1.8076171875, + -1.869140625 + ], + [ + 1.0517578125, + 1.880859375 + ], + [ + 1.6240234375, + 1.8828125 + ] + ], + [ + [ + 0.2012939453125, + -0.485595703125 + ], + [ + 1.3994140625, + 0.455322265625 + ], + [ + 0.458984375, + -0.3310546875 + ], + [ + 0.287353515625, + -0.6884765625 + ] + ], + [ + [ + 0.958984375, + -1.640625 + ], + [ + 0.9189453125, + 1.3955078125 + ], + [ + -0.110107421875, + 0.039306640625 + ], + [ + 1.0263671875, + 1.8779296875 + ] + ], + [ + [ + 1.962890625, + 1.962890625 + ], + [ + 1.7138671875, + 1.7138671875 + ], + [ + 0.016876220703125, + 1.7705078125 + ], + [ + 0.9365234375, + 0.1273193359375 + ] + ], + [ + [ + 1.4384765625, + -0.4873046875 + ], + [ + 1.4072265625, + 1.095703125 + ], + [ + 1.05859375, + 1.70703125 + ], + [ + 1.376953125, + 1.376953125 + ] + ], + [ + [ + 1.94921875, + 1.58203125 + ], + [ + -0.2626953125, + 0.69677734375 + ], + [ + 1.0673828125, + 1.0673828125 + ], + [ + 1.2255859375, + 1.2255859375 + ] + ], + [ + [ + -0.76611328125, + -0.65966796875 + ], + [ + 1.716796875, + 1.716796875 + ], + [ + 1.37109375, + -0.2144775390625 + ], + [ + 1.9775390625, + 1.9775390625 + ] + ], + [ + [ + 1.080078125, + 1.5400390625 + ], + [ + -0.042938232421875, + -1.43359375 + ], + [ + 0.625, + 0.75 + ], + [ + -1.810546875, + -0.853515625 + ] + ], + [ + [ + 1.0810546875, + 1.0810546875 + ], + [ + 1.197265625, + 1.197265625 + ], + [ + 0.40966796875, + 0.40966796875 + ], + [ + 1.427734375, + 1.427734375 + ] + ], + [ + [ + 0.60546875, + -1.5654296875 + ], + [ + -0.896484375, + -0.896484375 + ], + [ + -0.173828125, + -0.34326171875 + ], + [ + 1.2412109375, + -0.48876953125 + ] + ] + ], + [ + [ + [ + 0.12176513671875, + 0.3740234375 + ], + [ + -0.93896484375, + 0.060546875 + ], + [ + -0.428955078125, + -0.31494140625 + ], + [ + -0.299560546875, + 1.130859375 + ] + ], + [ + [ + 1.76953125, + 1.517578125 + ], + [ + 0.405517578125, + 1.0556640625 + ], + [ + 1.5751953125, + 1.5751953125 + ], + [ + 0.529296875, + 1.716796875 + ] + ], + [ + [ + 1.923828125, + -0.68896484375 + ], + [ + 0.01004791259765625, + 0.18798828125 + ], + [ + -0.3291015625, + -0.3291015625 + ], + [ + 1.9501953125, + -0.970703125 + ] + ], + [ + [ + 0.01071929931640625, + 1.37109375 + ], + [ + -0.70458984375, + -0.080810546875 + ], + [ + 1.912109375, + -0.1004638671875 + ], + [ + 0.26318359375, + 0.26318359375 + ] + ], + [ + [ + 1.78125, + -0.346435546875 + ], + [ + 1.2958984375, + 1.2958984375 + ], + [ + -0.305419921875, + 1.720703125 + ], + [ + 1.87890625, + 1.884765625 + ] + ], + [ + [ + 1.138671875, + 1.138671875 + ], + [ + 1.8701171875, + 1.8701171875 + ], + [ + 1.3525390625, + 1.421875 + ], + [ + -0.4404296875, + 0.12286376953125 + ] + ], + [ + [ + 1.90625, + 0.1058349609375 + ], + [ + -0.79443359375, + -1.3203125 + ], + [ + 1.2724609375, + 1.2724609375 + ], + [ + 0.72021484375, + 0.336669921875 + ] + ], + [ + [ + 0.69921875, + -0.9462890625 + ], + [ + 1.71875, + 1.71875 + ], + [ + 0.8671875, + -0.1339111328125 + ], + [ + 0.25537109375, + 1.41015625 + ] + ], + [ + [ + 0.88427734375, + 0.88427734375 + ], + [ + 1.6005859375, + -0.62939453125 + ], + [ + 0.391357421875, + 0.391357421875 + ], + [ + 1.263671875, + 1.263671875 + ] + ], + [ + [ + 0.98828125, + -1.4765625 + ], + [ + 1.2275390625, + 1.748046875 + ], + [ + 0.426025390625, + 0.84130859375 + ], + [ + 0.8544921875, + 1.9716796875 + ] + ], + [ + [ + -0.6337890625, + -1.3486328125 + ], + [ + 1.748046875, + 1.748046875 + ], + [ + 1.5791015625, + 1.5791015625 + ], + [ + -1.255859375, + 1.7109375 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/maximum/maximum_2x11x4x2_f16/desc.json b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/desc.json new file mode 100644 index 000000000..5ee7961df --- /dev/null +++ b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/desc.json @@ -0,0 +1,25 @@ +{ + "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" + ], + "profile": [ + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-0.json b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-0.json new file mode 100644 index 000000000..dda91af48 --- /dev/null +++ b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-0.json @@ -0,0 +1,405 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + -1.10546875, + -0.180419921875 + ], + [ + -0.34423828125, + -1.29296875 + ], + [ + 1.2978515625, + 1.703125 + ], + [ + -1.1943359375, + 1.71875 + ] + ], + [ + [ + -1.9287109375, + 1.7001953125 + ], + [ + 1.8076171875, + -1.9521484375 + ], + [ + 1.0517578125, + 1.880859375 + ], + [ + 1.6240234375, + 1.8828125 + ] + ], + [ + [ + 0.2012939453125, + -1.6875 + ], + [ + 1.3994140625, + 0.455322265625 + ], + [ + 0.458984375, + -0.3310546875 + ], + [ + 0.287353515625, + -1.3857421875 + ] + ], + [ + [ + 0.958984375, + -1.7001953125 + ], + [ + 0.9189453125, + 1.3955078125 + ], + [ + -0.110107421875, + 0.039306640625 + ], + [ + -0.7509765625, + 1.8779296875 + ] + ], + [ + [ + 0.9326171875, + -0.52392578125 + ], + [ + -1.30078125, + -1.1220703125 + ], + [ + -0.144287109375, + 1.7705078125 + ], + [ + 0.9365234375, + -1.138671875 + ] + ], + [ + [ + 1.4384765625, + -0.4873046875 + ], + [ + 1.4072265625, + -1.033203125 + ], + [ + 0.474609375, + 1.70703125 + ], + [ + -0.96826171875, + 0.771484375 + ] + ], + [ + [ + 1.94921875, + -1.3974609375 + ], + [ + -1.646484375, + 0.69677734375 + ], + [ + -0.64111328125, + -1.71484375 + ], + [ + -0.0987548828125, + 1.0146484375 + ] + ], + [ + [ + -0.859375, + -0.65966796875 + ], + [ + 1.3828125, + 0.08026123046875 + ], + [ + 1.37109375, + -0.2144775390625 + ], + [ + 1.8115234375, + 0.60302734375 + ] + ], + [ + [ + -1.5361328125, + 1.5400390625 + ], + [ + -0.042938232421875, + -1.43359375 + ], + [ + -1.3896484375, + 0.75 + ], + [ + -1.810546875, + -0.853515625 + ] + ], + [ + [ + -1.4404296875, + -0.2357177734375 + ], + [ + -0.342529296875, + 0.0875244140625 + ], + [ + -0.88134765625, + -1.8720703125 + ], + [ + 0.45751953125, + -0.50537109375 + ] + ], + [ + [ + 0.60546875, + -1.5654296875 + ], + [ + -1.9453125, + -1.0068359375 + ], + [ + -0.173828125, + -0.423828125 + ], + [ + 1.2412109375, + -0.48876953125 + ] + ] + ], + [ + [ + [ + 0.12176513671875, + 0.3740234375 + ], + [ + -1.9130859375, + 0.060546875 + ], + [ + -0.62060546875, + -0.31494140625 + ], + [ + -1.5986328125, + 1.130859375 + ] + ], + [ + [ + 1.76953125, + -1.9111328125 + ], + [ + 0.405517578125, + 1.0556640625 + ], + [ + -0.86083984375, + 1.150390625 + ], + [ + 0.529296875, + 1.716796875 + ] + ], + [ + [ + 1.923828125, + -1.8310546875 + ], + [ + -0.22021484375, + 0.18798828125 + ], + [ + -1.4130859375, + -0.65478515625 + ], + [ + 1.9501953125, + -1.935546875 + ] + ], + [ + [ + -0.18994140625, + 1.37109375 + ], + [ + -0.70458984375, + -0.080810546875 + ], + [ + 1.912109375, + -0.1004638671875 + ], + [ + -1.4765625, + -1.79296875 + ] + ], + [ + [ + 1.78125, + -0.9365234375 + ], + [ + 0.0162506103515625, + -1.63671875 + ], + [ + -0.305419921875, + 1.720703125 + ], + [ + 0.00965118408203125, + 1.884765625 + ] + ], + [ + [ + -0.96484375, + 0.0181884765625 + ], + [ + 1.4384765625, + -0.20703125 + ], + [ + -0.8818359375, + 1.421875 + ], + [ + -0.4404296875, + 0.12286376953125 + ] + ], + [ + [ + 1.90625, + -1.25390625 + ], + [ + -0.79443359375, + -1.8759765625 + ], + [ + -0.4326171875, + -1.19921875 + ], + [ + 0.72021484375, + -1.2744140625 + ] + ], + [ + [ + 0.69921875, + -0.9462890625 + ], + [ + -0.5791015625, + -0.6044921875 + ], + [ + 0.8671875, + -0.1339111328125 + ], + [ + -0.5546875, + 1.41015625 + ] + ], + [ + [ + 0.287841796875, + -1.14453125 + ], + [ + 1.6005859375, + -0.62939453125 + ], + [ + -1.84375, + -0.0216064453125 + ], + [ + -1.50390625, + -1.0458984375 + ] + ], + [ + [ + 0.98828125, + -1.4765625 + ], + [ + 1.2275390625, + 1.748046875 + ], + [ + 0.426025390625, + 0.84130859375 + ], + [ + 0.8544921875, + 1.9716796875 + ] + ], + [ + [ + -0.6337890625, + -1.3486328125 + ], + [ + 0.07666015625, + 0.133056640625 + ], + [ + -1.2880859375, + 0.452392578125 + ], + [ + -1.943359375, + 1.7109375 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-1.json b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-1.json new file mode 100644 index 000000000..add883a0c --- /dev/null +++ b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/input-1.json @@ -0,0 +1,317 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + -0.94189453125 + ], + [ + -1.841796875 + ], + [ + -1.5673828125 + ], + [ + -1.0390625 + ] + ], + [ + [ + -0.904296875 + ], + [ + -1.869140625 + ], + [ + -0.8828125 + ], + [ + -1.228515625 + ] + ], + [ + [ + -0.485595703125 + ], + [ + -0.459228515625 + ], + [ + -0.64404296875 + ], + [ + -0.6884765625 + ] + ], + [ + [ + -1.640625 + ], + [ + -1.8994140625 + ], + [ + -1.19140625 + ], + [ + 1.0263671875 + ] + ], + [ + [ + 1.962890625 + ], + [ + 1.7138671875 + ], + [ + 0.016876220703125 + ], + [ + 0.1273193359375 + ] + ], + [ + [ + -0.74169921875 + ], + [ + 1.095703125 + ], + [ + 1.05859375 + ], + [ + 1.376953125 + ] + ], + [ + [ + 1.58203125 + ], + [ + -0.2626953125 + ], + [ + 1.0673828125 + ], + [ + 1.2255859375 + ] + ], + [ + [ + -0.76611328125 + ], + [ + 1.716796875 + ], + [ + -1.623046875 + ], + [ + 1.9775390625 + ] + ], + [ + [ + 1.080078125 + ], + [ + -1.626953125 + ], + [ + 0.625 + ], + [ + -1.86328125 + ] + ], + [ + [ + 1.0810546875 + ], + [ + 1.197265625 + ], + [ + 0.40966796875 + ], + [ + 1.427734375 + ] + ], + [ + [ + -1.6083984375 + ], + [ + -0.896484375 + ], + [ + -0.34326171875 + ], + [ + -1.830078125 + ] + ] + ], + [ + [ + [ + -0.2071533203125 + ], + [ + -0.93896484375 + ], + [ + -0.428955078125 + ], + [ + -0.299560546875 + ] + ], + [ + [ + 1.517578125 + ], + [ + -0.91845703125 + ], + [ + 1.5751953125 + ], + [ + -0.296142578125 + ] + ], + [ + [ + -0.68896484375 + ], + [ + 0.01004791259765625 + ], + [ + -0.3291015625 + ], + [ + -0.970703125 + ] + ], + [ + [ + 0.01071929931640625 + ], + [ + -1.392578125 + ], + [ + -0.59228515625 + ], + [ + 0.26318359375 + ] + ], + [ + [ + -0.346435546875 + ], + [ + 1.2958984375 + ], + [ + -0.97314453125 + ], + [ + 1.87890625 + ] + ], + [ + [ + 1.138671875 + ], + [ + 1.8701171875 + ], + [ + 1.3525390625 + ], + [ + -1.431640625 + ] + ], + [ + [ + 0.1058349609375 + ], + [ + -1.3203125 + ], + [ + 1.2724609375 + ], + [ + 0.336669921875 + ] + ], + [ + [ + -0.9462890625 + ], + [ + 1.71875 + ], + [ + -1.5390625 + ], + [ + 0.25537109375 + ] + ], + [ + [ + 0.88427734375 + ], + [ + -1.7646484375 + ], + [ + 0.391357421875 + ], + [ + 1.263671875 + ] + ], + [ + [ + -1.7294921875 + ], + [ + 0.048980712890625 + ], + [ + -0.9658203125 + ], + [ + 0.65185546875 + ] + ], + [ + [ + -1.525390625 + ], + [ + 1.748046875 + ], + [ + 1.5791015625 + ], + [ + -1.255859375 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/ew_binary/maximum/maximum_2x11x4x2_f16/test.json b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/test.json new file mode 100644 index 000000000..6f47a2eb7 --- /dev/null +++ b/operators/ew_binary/maximum/maximum_2x11x4x2_f16/test.json @@ -0,0 +1,65 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "MAXIMUM", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4, + 2 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 2, + 11, + 4, + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 2, + 11, + 4, + 2 + ], + type: "FP16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1