diff options
author | James Ward <james.ward@arm.com> | 2022-12-14 12:54:33 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-12-15 16:42:48 +0000 |
commit | 1aa23bd44af0ae508dc83d26e66dfc6d68d837f8 (patch) | |
tree | b8eb2bbc9481a662dfe90b7f056e8a2670626034 /operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16 | |
parent | 263d638929db1393196f171254a9e87e70983046 (diff) | |
download | conformance_tests-1aa23bd44af0ae508dc83d26e66dfc6d68d837f8.tar.gz |
Create MI tests for EW Unary: ABS, CEIL, FLOOR, NEGATE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I2359051636ec6f3924bfc854c227993a883067cc
Diffstat (limited to 'operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16')
3 files changed, 87 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/desc.json b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/desc.json new file mode 100644 index 000000000..e88131037 --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/desc.json @@ -0,0 +1,21 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0" + ], + "ifm_file": [ + "input-0.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Input DType not INT8 and zero point not 0", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/input-0.json b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/input-0.json new file mode 100644 index 000000000..fed6a9314 --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/input-0.json @@ -0,0 +1,15 @@ +{ + "type": "float16", + "data": [ + 0.62744140625, + 0.583984375, + 0.64990234375, + 0.08447265625, + 0.415771484375, + 0.0416259765625, + 0.493896484375, + 0.329833984375, + 0.14453125, + 0.1033935546875 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/test.json b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/test.json new file mode 100644 index 000000000..32d54b475 --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/test.json @@ -0,0 +1,51 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "NEGATE", + attribute_type: "NegateAttribute", + attribute: { + input1_zp: 41, + output_zp: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 10 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |