diff options
author | James Ward <james.ward@arm.com> | 2022-12-14 12:16:05 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-12-15 16:42:21 +0000 |
commit | e926477175d04742f000925b4780d97e0c919e86 (patch) | |
tree | ba29abe6262d8f302365da95f10c99a49b68b9f5 /operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16 | |
parent | 7125e9b2ef21580734f6ec654f6c47da6d870ebe (diff) | |
download | conformance_tests-e926477175d04742f000925b4780d97e0c919e86.tar.gz |
Create MI tests for EW Binary: MINIMUM, MAXIMUM
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I59cc5c683e270dcea7ced52fc1d037a553ff544f
Diffstat (limited to 'operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16')
4 files changed, 93 insertions, 0 deletions
diff --git a/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/desc.json b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/desc.json new file mode 100644 index 000000000..3e33b7c32 --- /dev/null +++ b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/desc.json @@ -0,0 +1,23 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Op input list does not match expected input", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/input-0.json b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/input-0.json new file mode 100644 index 000000000..563d7b513 --- /dev/null +++ b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/input-0.json @@ -0,0 +1,7 @@ +{ + "type": "float16", + "data": [ + 0.7646484375, + 0.08233642578125 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/input-1.json b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/input-1.json new file mode 100644 index 000000000..6f6887d05 --- /dev/null +++ b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "float16", + "data": [ + 0.86376953125 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/test.json b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/test.json new file mode 100644 index 000000000..5dd222d25 --- /dev/null +++ b/operators/ew_binary/minimum/minimum_ERRORIF_WrongInputList_2_f16/test.json @@ -0,0 +1,57 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "MINIMUM", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1", + "eiDummyInput" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 2 + ], + type: "FP16" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |