diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-04 14:47:16 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-01-11 22:53:36 +0000 |
commit | 007a2c7c0743b002587cd5e7b4c6b6acbcaedff8 (patch) | |
tree | 03fd6fc8fb2517b07bd9b9a5b31a65848ff1f2db /operators/ew_binary/mul/mul_20_f16_perm0_shift0 | |
parent | c9b776bfc8433d9d4ef1cd9a5502d1b35827ff27 (diff) | |
download | conformance_tests-007a2c7c0743b002587cd5e7b4c6b6acbcaedff8.tar.gz |
Create MI tests for EW Binary: ADD, SUB, MUL
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Iefd40317b8e2a4ff74e8f835d580a2fc623c5875
Diffstat (limited to 'operators/ew_binary/mul/mul_20_f16_perm0_shift0')
5 files changed, 140 insertions, 0 deletions
diff --git a/operators/ew_binary/mul/mul_20_f16_perm0_shift0/Conformance-result-0.json b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/Conformance-result-0.json new file mode 100644 index 000000000..a405f2024 --- /dev/null +++ b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/Conformance-result-0.json @@ -0,0 +1,25 @@ +{ + "type": "float16", + "data": [ + 0.1695556640625, + -0.1273193359375, + -0.05120849609375, + -0.10028076171875, + 0.056549072265625, + -0.1829833984375, + -0.15283203125, + -0.108154296875, + 0.11871337890625, + 0.01293182373046875, + 0.1773681640625, + 0.1343994140625, + -0.0711669921875, + -0.09515380859375, + -0.1817626953125, + 0.06768798828125, + 0.05035400390625, + 0.01183319091796875, + 0.1207275390625, + 0.143798828125 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/mul/mul_20_f16_perm0_shift0/desc.json b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/desc.json new file mode 100644 index 000000000..5ee7961df --- /dev/null +++ b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/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/mul/mul_20_f16_perm0_shift0/input-0.json b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/input-0.json new file mode 100644 index 000000000..6bb235bd1 --- /dev/null +++ b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/input-0.json @@ -0,0 +1,25 @@ +{ + "type": "float16", + "data": [ + -1.7451171875, + 1.310546875, + 0.52685546875, + 1.0322265625, + -0.58203125, + 1.8828125, + 1.572265625, + 1.11328125, + -1.2216796875, + -0.133056640625, + -1.8251953125, + -1.3828125, + 0.732421875, + 0.97900390625, + 1.8701171875, + -0.69677734375, + -0.51806640625, + -0.12176513671875, + -1.2421875, + -1.48046875 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/mul/mul_20_f16_perm0_shift0/input-1.json b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/input-1.json new file mode 100644 index 000000000..2b15f4571 --- /dev/null +++ b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "float16", + "data": [ + -0.09716796875 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/mul/mul_20_f16_perm0_shift0/test.json b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/test.json new file mode 100644 index 000000000..827bd72d4 --- /dev/null +++ b/operators/ew_binary/mul/mul_20_f16_perm0_shift0/test.json @@ -0,0 +1,59 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "MUL", + attribute_type: "MulAttribute", + attribute: { + shift: 0 + }, + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 20 + ], + type: "FP16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |