diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-18 15:53:26 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-18 15:53:26 +0000 |
commit | de22a661323bcad18a67a318d9cda5ce9f2699a8 (patch) | |
tree | 1d5b057089d69195b425d33a118e12fafb68600d /operators/comparison/greater/greater_37_bf16 | |
parent | 7d3ec0e4ed28c02203816f8169a8d29465c4dcb9 (diff) | |
download | conformance_tests-de22a661323bcad18a67a318d9cda5ce9f2699a8.tar.gz |
Create MI tests for Comparison: EQUAL, GREATER, GREATER_EQUAL
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I1d7b1409f48ea1fb177f2956371a927c3904de54
Diffstat (limited to 'operators/comparison/greater/greater_37_bf16')
5 files changed, 176 insertions, 0 deletions
diff --git a/operators/comparison/greater/greater_37_bf16/Conformance-result-0.json b/operators/comparison/greater/greater_37_bf16/Conformance-result-0.json new file mode 100644 index 000000000..67325867a --- /dev/null +++ b/operators/comparison/greater/greater_37_bf16/Conformance-result-0.json @@ -0,0 +1,42 @@ +{ + "type": "bool", + "data": [ + true, + false, + true, + true, + true, + false, + true, + true, + false, + false, + true, + true, + true, + false, + true, + true, + true, + true, + false, + false, + true, + true, + false, + false, + true, + false, + true, + true, + true, + true, + true, + true, + true, + false, + true, + false, + true + ] +}
\ No newline at end of file diff --git a/operators/comparison/greater/greater_37_bf16/desc.json b/operators/comparison/greater/greater_37_bf16/desc.json new file mode 100644 index 000000000..5ee7961df --- /dev/null +++ b/operators/comparison/greater/greater_37_bf16/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/comparison/greater/greater_37_bf16/input-0.json b/operators/comparison/greater/greater_37_bf16/input-0.json new file mode 100644 index 000000000..af3ed4ac2 --- /dev/null +++ b/operators/comparison/greater/greater_37_bf16/input-0.json @@ -0,0 +1,42 @@ +{ + "type": "float32", + "data": [ + 0.004150390625, + -1.390625, + 0.78515625, + -0.21484375, + -0.474609375, + -0.79296875, + 0.51953125, + -0.55078125, + -1.6484375, + -1.5234375, + 1.84375, + 1.6328125, + 0.796875, + -0.93359375, + 1.875, + 1.109375, + 0.8671875, + -0.2021484375, + -0.91015625, + -1.609375, + 1.609375, + -0.1767578125, + -1.1875, + -0.7734375, + 0.31640625, + -1.2890625, + 1.421875, + 1.03125, + 0.875, + -0.271484375, + 0.5078125, + 0.3359375, + 0.59765625, + -1.65625, + -0.3359375, + -1.828125, + -0.02392578125 + ] +}
\ No newline at end of file diff --git a/operators/comparison/greater/greater_37_bf16/input-1.json b/operators/comparison/greater/greater_37_bf16/input-1.json new file mode 100644 index 000000000..d0d2ccdf0 --- /dev/null +++ b/operators/comparison/greater/greater_37_bf16/input-1.json @@ -0,0 +1,6 @@ +{ + "type": "float32", + "data": [ + -0.6796875 + ] +}
\ No newline at end of file diff --git a/operators/comparison/greater/greater_37_bf16/test.json b/operators/comparison/greater/greater_37_bf16/test.json new file mode 100644 index 000000000..597f84343 --- /dev/null +++ b/operators/comparison/greater/greater_37_bf16/test.json @@ -0,0 +1,61 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "GREATER", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 37 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 37 + ], + type: "BOOL" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |