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/ceil/ceil_50_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/ceil/ceil_50_f16')
-rw-r--r-- | operators/ew_unary/ceil/ceil_50_f16/Conformance-result-0.json | 55 | ||||
-rw-r--r-- | operators/ew_unary/ceil/ceil_50_f16/desc.json | 23 | ||||
-rw-r--r-- | operators/ew_unary/ceil/ceil_50_f16/input-0.json | 55 | ||||
-rw-r--r-- | operators/ew_unary/ceil/ceil_50_f16/test.json | 47 |
4 files changed, 180 insertions, 0 deletions
diff --git a/operators/ew_unary/ceil/ceil_50_f16/Conformance-result-0.json b/operators/ew_unary/ceil/ceil_50_f16/Conformance-result-0.json new file mode 100644 index 000000000..2624b3405 --- /dev/null +++ b/operators/ew_unary/ceil/ceil_50_f16/Conformance-result-0.json @@ -0,0 +1,55 @@ +{ + "type": "float16", + "data": [ + 2.0, + 1.0, + 2.0, + -0.0, + 2.0, + 2.0, + 2.0, + -1.0, + -0.0, + -1.0, + -1.0, + 1.0, + 1.0, + 2.0, + -0.0, + -0.0, + -0.0, + -1.0, + -1.0, + -0.0, + -1.0, + 1.0, + -0.0, + 2.0, + 1.0, + -0.0, + 2.0, + 2.0, + -0.0, + -0.0, + 1.0, + -1.0, + -1.0, + -1.0, + 2.0, + 1.0, + 1.0, + 2.0, + -0.0, + 1.0, + -1.0, + -1.0, + 1.0, + -0.0, + 1.0, + 2.0, + 1.0, + 1.0, + 1.0, + -0.0 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/ceil/ceil_50_f16/desc.json b/operators/ew_unary/ceil/ceil_50_f16/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/ew_unary/ceil/ceil_50_f16/desc.json @@ -0,0 +1,23 @@ +{ + "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": 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_unary/ceil/ceil_50_f16/input-0.json b/operators/ew_unary/ceil/ceil_50_f16/input-0.json new file mode 100644 index 000000000..47da20e99 --- /dev/null +++ b/operators/ew_unary/ceil/ceil_50_f16/input-0.json @@ -0,0 +1,55 @@ +{ + "type": "float16", + "data": [ + 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, + -0.09716796875, + -1.0927734375, + 0.67919921875, + -0.25146484375, + 1.3310546875, + 0.80126953125, + -0.75048828125, + 1.3291015625, + 1.21875, + -0.4501953125, + -0.8466796875, + 0.72998046875, + -1.44140625, + -1.2001953125, + -1.970703125, + 1.1474609375, + 0.6591796875, + 0.82080078125, + 1.123046875, + -0.164306640625, + 0.27490234375, + -1.4404296875, + -1.5419921875, + 0.673828125, + -0.1156005859375, + 0.260986328125, + 1.0595703125, + 0.5390625, + 0.21435546875, + 0.23681640625, + -0.7841796875 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/ceil/ceil_50_f16/test.json b/operators/ew_unary/ceil/ceil_50_f16/test.json new file mode 100644 index 000000000..9bd62ea65 --- /dev/null +++ b/operators/ew_unary/ceil/ceil_50_f16/test.json @@ -0,0 +1,47 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CEIL", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 50 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 50 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |