diff options
author | James Ward <james.ward@arm.com> | 2022-12-14 13:08:50 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-12-15 16:42:33 +0000 |
commit | 263d638929db1393196f171254a9e87e70983046 (patch) | |
tree | 8f2a02b27aea2b64dd3075a4ae06c40b82238d5d /operators/ew_ternary/select/select_2x11x4x2_bf16 | |
parent | e926477175d04742f000925b4780d97e0c919e86 (diff) | |
download | conformance_tests-263d638929db1393196f171254a9e87e70983046.tar.gz |
Create MI tests for EW Ternary: SELECT
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ib3b58e00d2cc9f318e214d24a87680c884f78237
Diffstat (limited to 'operators/ew_ternary/select/select_2x11x4x2_bf16')
6 files changed, 1636 insertions, 0 deletions
diff --git a/operators/ew_ternary/select/select_2x11x4x2_bf16/Conformance-result-0.json b/operators/ew_ternary/select/select_2x11x4x2_bf16/Conformance-result-0.json new file mode 100644 index 000000000..c860ba7e0 --- /dev/null +++ b/operators/ew_ternary/select/select_2x11x4x2_bf16/Conformance-result-0.json @@ -0,0 +1,405 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + 1.71875, + -1.9453125 + ], + [ + -1.0078125, + -1.8515625 + ], + [ + 1.1875, + 1.875 + ], + [ + -0.1689453125, + 0.3671875 + ] + ], + [ + [ + -0.96875, + 0.1708984375 + ], + [ + -0.71484375, + -1.0 + ], + [ + -1.5234375, + -1.265625 + ], + [ + -1.1328125, + -1.1328125 + ] + ], + [ + [ + -0.8984375, + -0.8984375 + ], + [ + -0.39453125, + 1.2734375 + ], + [ + 0.61328125, + 0.11572265625 + ], + [ + -1.9921875, + -1.9921875 + ] + ], + [ + [ + 0.453125, + -0.88671875 + ], + [ + -1.625, + 0.423828125 + ], + [ + 0.1982421875, + 0.1982421875 + ], + [ + -0.68359375, + 0.1953125 + ] + ], + [ + [ + 0.193359375, + 0.193359375 + ], + [ + -1.109375, + -1.109375 + ], + [ + -0.76171875, + -1.8984375 + ], + [ + 1.7578125, + 1.7578125 + ] + ], + [ + [ + -1.5625, + -1.15625 + ], + [ + -1.4921875, + -1.6015625 + ], + [ + 1.3125, + -1.40625 + ], + [ + -1.015625, + 0.98046875 + ] + ], + [ + [ + 0.46875, + 0.46875 + ], + [ + 0.359375, + -1.5546875 + ], + [ + -1.6796875, + 1.9453125 + ], + [ + -0.828125, + -1.640625 + ] + ], + [ + [ + 1.890625, + 1.890625 + ], + [ + -0.8828125, + -1.1796875 + ], + [ + 1.7890625, + -1.6328125 + ], + [ + -0.6953125, + -1.0546875 + ] + ], + [ + [ + -0.462890625, + 0.96875 + ], + [ + 1.71875, + 0.28125 + ], + [ + -0.7421875, + -1.4296875 + ], + [ + -0.9296875, + 1.4375 + ] + ], + [ + [ + -0.482421875, + -0.482421875 + ], + [ + 1.15625, + 0.59375 + ], + [ + 1.8671875, + -1.078125 + ], + [ + 1.9375, + 0.82421875 + ] + ], + [ + [ + 1.6875, + 1.6875 + ], + [ + -1.2578125, + 0.26953125 + ], + [ + 0.81640625, + 0.81640625 + ], + [ + 1.0546875, + -1.3984375 + ] + ] + ], + [ + [ + [ + 0.1328125, + 0.1328125 + ], + [ + 0.69140625, + 0.69140625 + ], + [ + -0.1748046875, + -1.0 + ], + [ + 1.5390625, + -1.609375 + ] + ], + [ + [ + 0.59375, + -1.0234375 + ], + [ + 1.4140625, + 1.4140625 + ], + [ + -1.859375, + -1.390625 + ], + [ + -1.1328125, + 0.83203125 + ] + ], + [ + [ + 0.390625, + 1.9921875 + ], + [ + -1.015625, + 1.5234375 + ], + [ + -1.3515625, + -1.3515625 + ], + [ + 0.6953125, + -1.265625 + ] + ], + [ + [ + -1.7578125, + -1.7578125 + ], + [ + 0.357421875, + 1.8515625 + ], + [ + 1.2578125, + 0.734375 + ], + [ + 1.46875, + 0.3515625 + ] + ], + [ + [ + -0.6484375, + 0.443359375 + ], + [ + 0.7890625, + -0.9296875 + ], + [ + -1.109375, + 0.376953125 + ], + [ + 0.63671875, + -1.1640625 + ] + ], + [ + [ + 1.0390625, + 0.251953125 + ], + [ + -1.171875, + -0.1845703125 + ], + [ + 0.6640625, + 0.6640625 + ], + [ + 1.4921875, + -0.11279296875 + ] + ], + [ + [ + 1.3984375, + 1.8515625 + ], + [ + -1.65625, + -1.65625 + ], + [ + -1.6640625, + -1.015625 + ], + [ + -0.96875, + -1.3125 + ] + ], + [ + [ + 1.8125, + -1.2109375 + ], + [ + -1.109375, + 1.0390625 + ], + [ + 0.5625, + 1.2578125 + ], + [ + -1.3203125, + 0.58203125 + ] + ], + [ + [ + -0.86328125, + 1.75 + ], + [ + -0.326171875, + -0.326171875 + ], + [ + 0.84375, + 0.625 + ], + [ + 1.1875, + 0.52734375 + ] + ], + [ + [ + -1.359375, + 1.828125 + ], + [ + -0.9140625, + 1.5 + ], + [ + -1.3828125, + -0.66796875 + ], + [ + -0.671875, + 1.1015625 + ] + ], + [ + [ + -1.234375, + -1.2265625 + ], + [ + 0.166015625, + 1.6484375 + ], + [ + 0.75390625, + 0.0712890625 + ], + [ + -0.291015625, + -0.65234375 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/ew_ternary/select/select_2x11x4x2_bf16/desc.json b/operators/ew_ternary/select/select_2x11x4x2_bf16/desc.json new file mode 100644 index 000000000..1dda0d9ce --- /dev/null +++ b/operators/ew_ternary/select/select_2x11x4x2_bf16/desc.json @@ -0,0 +1,27 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1", + "input-2" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy", + "input-2.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_ternary/select/select_2x11x4x2_bf16/input-0.json b/operators/ew_ternary/select/select_2x11x4x2_bf16/input-0.json new file mode 100644 index 000000000..38f2a25f6 --- /dev/null +++ b/operators/ew_ternary/select/select_2x11x4x2_bf16/input-0.json @@ -0,0 +1,405 @@ +{ + "type": "bool", + "data": [ + [ + [ + [ + true, + false + ], + [ + false, + true + ], + [ + false, + false + ], + [ + true, + false + ] + ], + [ + [ + false, + false + ], + [ + false, + true + ], + [ + true, + false + ], + [ + true, + true + ] + ], + [ + [ + true, + true + ], + [ + true, + false + ], + [ + false, + true + ], + [ + true, + true + ] + ], + [ + [ + false, + false + ], + [ + true, + false + ], + [ + true, + true + ], + [ + true, + false + ] + ], + [ + [ + true, + true + ], + [ + true, + true + ], + [ + false, + true + ], + [ + true, + true + ] + ], + [ + [ + true, + false + ], + [ + true, + false + ], + [ + false, + true + ], + [ + false, + false + ] + ], + [ + [ + true, + true + ], + [ + false, + false + ], + [ + false, + true + ], + [ + false, + true + ] + ], + [ + [ + true, + true + ], + [ + false, + true + ], + [ + false, + false + ], + [ + false, + false + ] + ], + [ + [ + true, + false + ], + [ + true, + false + ], + [ + false, + false + ], + [ + false, + false + ] + ], + [ + [ + true, + true + ], + [ + false, + true + ], + [ + true, + false + ], + [ + false, + false + ] + ], + [ + [ + true, + true + ], + [ + false, + true + ], + [ + true, + true + ], + [ + false, + true + ] + ] + ], + [ + [ + [ + true, + true + ], + [ + true, + true + ], + [ + true, + false + ], + [ + false, + false + ] + ], + [ + [ + false, + true + ], + [ + true, + true + ], + [ + true, + false + ], + [ + false, + true + ] + ], + [ + [ + false, + true + ], + [ + false, + false + ], + [ + true, + true + ], + [ + true, + false + ] + ], + [ + [ + true, + true + ], + [ + true, + false + ], + [ + false, + true + ], + [ + false, + true + ] + ], + [ + [ + false, + false + ], + [ + true, + false + ], + [ + false, + true + ], + [ + false, + true + ] + ], + [ + [ + false, + true + ], + [ + false, + false + ], + [ + true, + true + ], + [ + false, + true + ] + ], + [ + [ + false, + false + ], + [ + true, + true + ], + [ + false, + true + ], + [ + false, + false + ] + ], + [ + [ + false, + false + ], + [ + true, + false + ], + [ + false, + true + ], + [ + true, + false + ] + ], + [ + [ + true, + false + ], + [ + true, + true + ], + [ + false, + false + ], + [ + true, + false + ] + ], + [ + [ + false, + true + ], + [ + false, + true + ], + [ + true, + false + ], + [ + false, + true + ] + ], + [ + [ + false, + false + ], + [ + false, + true + ], + [ + false, + true + ], + [ + false, + true + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/ew_ternary/select/select_2x11x4x2_bf16/input-1.json b/operators/ew_ternary/select/select_2x11x4x2_bf16/input-1.json new file mode 100644 index 000000000..106b43535 --- /dev/null +++ b/operators/ew_ternary/select/select_2x11x4x2_bf16/input-1.json @@ -0,0 +1,317 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + 1.71875 + ], + [ + -1.8515625 + ], + [ + 0.484375 + ], + [ + -0.1689453125 + ] + ], + [ + [ + -1.9140625 + ], + [ + -1.0 + ], + [ + -1.5234375 + ], + [ + -1.1328125 + ] + ], + [ + [ + -0.8984375 + ], + [ + -0.39453125 + ], + [ + 0.11572265625 + ], + [ + -1.9921875 + ] + ], + [ + [ + -1.3515625 + ], + [ + -1.625 + ], + [ + 0.1982421875 + ], + [ + -0.68359375 + ] + ], + [ + [ + 0.193359375 + ], + [ + -1.109375 + ], + [ + -1.8984375 + ], + [ + 1.7578125 + ] + ], + [ + [ + -1.5625 + ], + [ + -1.4921875 + ], + [ + -1.40625 + ], + [ + 1.921875 + ] + ], + [ + [ + 0.46875 + ], + [ + 0.439453125 + ], + [ + 1.9453125 + ], + [ + -1.640625 + ] + ], + [ + [ + 1.890625 + ], + [ + -1.1796875 + ], + [ + 0.4921875 + ], + [ + -0.318359375 + ] + ], + [ + [ + -0.462890625 + ], + [ + 1.71875 + ], + [ + -1.3984375 + ], + [ + 1.984375 + ] + ], + [ + [ + -0.482421875 + ], + [ + 0.59375 + ], + [ + 1.8671875 + ], + [ + -1.765625 + ] + ], + [ + [ + 1.6875 + ], + [ + 0.26953125 + ], + [ + 0.81640625 + ], + [ + -1.3984375 + ] + ] + ], + [ + [ + [ + 0.1328125 + ], + [ + 0.69140625 + ], + [ + -0.1748046875 + ], + [ + -1.375 + ] + ], + [ + [ + -1.0234375 + ], + [ + 1.4140625 + ], + [ + -1.859375 + ], + [ + 0.83203125 + ] + ], + [ + [ + 1.9921875 + ], + [ + -1.96875 + ], + [ + -1.3515625 + ], + [ + 0.6953125 + ] + ], + [ + [ + -1.7578125 + ], + [ + 0.357421875 + ], + [ + 0.734375 + ], + [ + 0.3515625 + ] + ], + [ + [ + -0.5390625 + ], + [ + 0.7890625 + ], + [ + 0.376953125 + ], + [ + -1.1640625 + ] + ], + [ + [ + 0.251953125 + ], + [ + 1.5234375 + ], + [ + 0.6640625 + ], + [ + -0.11279296875 + ] + ], + [ + [ + -0.7109375 + ], + [ + -1.65625 + ], + [ + -1.015625 + ], + [ + -1.953125 + ] + ], + [ + [ + 1.9453125 + ], + [ + -1.109375 + ], + [ + 1.2578125 + ], + [ + -1.3203125 + ] + ], + [ + [ + -0.86328125 + ], + [ + -0.326171875 + ], + [ + -0.69921875 + ], + [ + 1.1875 + ] + ], + [ + [ + 1.828125 + ], + [ + 1.5 + ], + [ + -1.3828125 + ], + [ + 1.1015625 + ] + ], + [ + [ + -1.40625 + ], + [ + 1.6484375 + ], + [ + 0.0712890625 + ], + [ + -0.65234375 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/ew_ternary/select/select_2x11x4x2_bf16/input-2.json b/operators/ew_ternary/select/select_2x11x4x2_bf16/input-2.json new file mode 100644 index 000000000..fe76bc607 --- /dev/null +++ b/operators/ew_ternary/select/select_2x11x4x2_bf16/input-2.json @@ -0,0 +1,405 @@ +{ + "type": "float32", + "data": [ + [ + [ + [ + -1.3671875, + -1.9453125 + ], + [ + -1.0078125, + 1.6484375 + ], + [ + 1.1875, + 1.875 + ], + [ + -1.59375, + 0.3671875 + ] + ], + [ + [ + -0.96875, + 0.1708984375 + ], + [ + -0.71484375, + -0.86328125 + ], + [ + 0.294921875, + -1.265625 + ], + [ + -0.123046875, + 0.6015625 + ] + ], + [ + [ + -1.484375, + 1.71875 + ], + [ + 0.0228271484375, + 1.2734375 + ], + [ + 0.61328125, + 0.83984375 + ], + [ + 0.86328125, + 1.5 + ] + ], + [ + [ + 0.453125, + -0.88671875 + ], + [ + -1.6015625, + 0.423828125 + ], + [ + -1.734375, + -1.03125 + ], + [ + -1.75, + 0.1953125 + ] + ], + [ + [ + -1.3515625, + 0.44140625 + ], + [ + 1.15625, + 1.28125 + ], + [ + -0.76171875, + 0.1953125 + ], + [ + 0.251953125, + -0.1083984375 + ] + ], + [ + [ + 0.6171875, + -1.15625 + ], + [ + 1.9140625, + -1.6015625 + ], + [ + 1.3125, + 0.375 + ], + [ + -1.015625, + 0.98046875 + ] + ], + [ + [ + -1.65625, + 1.09375 + ], + [ + 0.359375, + -1.5546875 + ], + [ + -1.6796875, + 1.0 + ], + [ + -0.828125, + 1.5546875 + ] + ], + [ + [ + 1.046875, + 0.7890625 + ], + [ + -0.8828125, + 0.83203125 + ], + [ + 1.7890625, + -1.6328125 + ], + [ + -0.6953125, + -1.0546875 + ] + ], + [ + [ + -0.42578125, + 0.96875 + ], + [ + -0.10302734375, + 0.28125 + ], + [ + -0.7421875, + -1.4296875 + ], + [ + -0.9296875, + 1.4375 + ] + ], + [ + [ + 0.408203125, + -0.486328125 + ], + [ + 1.15625, + -1.734375 + ], + [ + -0.984375, + -1.078125 + ], + [ + 1.9375, + 0.82421875 + ] + ], + [ + [ + 0.470703125, + -1.9765625 + ], + [ + -1.2578125, + 0.5390625 + ], + [ + -0.48046875, + 1.6953125 + ], + [ + 1.0546875, + -0.2099609375 + ] + ] + ], + [ + [ + [ + 0.99609375, + 1.8984375 + ], + [ + -0.1552734375, + 0.56640625 + ], + [ + 1.671875, + -1.0 + ], + [ + 1.5390625, + -1.609375 + ] + ], + [ + [ + 0.59375, + 1.125 + ], + [ + 0.45703125, + -0.017822265625 + ], + [ + 0.46875, + -1.390625 + ], + [ + -1.1328125, + -0.91796875 + ] + ], + [ + [ + 0.390625, + -0.2314453125 + ], + [ + -1.015625, + 1.5234375 + ], + [ + -0.50390625, + -0.2158203125 + ], + [ + -0.359375, + -1.265625 + ] + ], + [ + [ + 0.92578125, + -0.2060546875 + ], + [ + -1.9296875, + 1.8515625 + ], + [ + 1.2578125, + 0.890625 + ], + [ + 1.46875, + 1.625 + ] + ], + [ + [ + -0.6484375, + 0.443359375 + ], + [ + 0.43359375, + -0.9296875 + ], + [ + -1.109375, + -1.5390625 + ], + [ + 0.63671875, + 1.1171875 + ] + ], + [ + [ + 1.0390625, + -0.734375 + ], + [ + -1.171875, + -0.1845703125 + ], + [ + 0.1865234375, + 1.671875 + ], + [ + 1.4921875, + 1.6640625 + ] + ], + [ + [ + 1.3984375, + 1.8515625 + ], + [ + -0.1376953125, + -1.8046875 + ], + [ + -1.6640625, + -0.4375 + ], + [ + -0.96875, + -1.3125 + ] + ], + [ + [ + 1.8125, + -1.2109375 + ], + [ + 1.8359375, + 1.0390625 + ], + [ + 0.5625, + 0.703125 + ], + [ + -0.671875, + 0.58203125 + ] + ], + [ + [ + -1.25, + 1.75 + ], + [ + -0.7890625, + -0.9765625 + ], + [ + 0.84375, + 0.625 + ], + [ + -0.1943359375, + 0.52734375 + ] + ], + [ + [ + -1.359375, + 0.69140625 + ], + [ + -0.9140625, + -0.90625 + ], + [ + -1.34375, + -0.66796875 + ], + [ + -0.671875, + -0.1826171875 + ] + ], + [ + [ + -1.234375, + -1.2265625 + ], + [ + 0.166015625, + -1.484375 + ], + [ + 0.75390625, + 1.7734375 + ], + [ + -0.291015625, + 1.6015625 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/ew_ternary/select/select_2x11x4x2_bf16/test.json b/operators/ew_ternary/select/select_2x11x4x2_bf16/test.json new file mode 100644 index 000000000..6cf886c7c --- /dev/null +++ b/operators/ew_ternary/select/select_2x11x4x2_bf16/test.json @@ -0,0 +1,77 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SELECT", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1", + "input-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4, + 2 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 2, + 11, + 4, + 1 + ], + type: "BF16" + }, + { + name: "input-2", + shape: [ + 2, + 11, + 4, + 2 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 2, + 11, + 4, + 2 + ], + type: "BF16" + } + ], + inputs: [ + "input-0", + "input-1", + "input-2" + ], + outputs: [ + "result-0" + ] + } + ] +} |