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_47_f32 | |
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_47_f32')
4 files changed, 178 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_47_f32/Conformance-result-0.json b/operators/ew_unary/negate/negate_47_f32/Conformance-result-0.json new file mode 100644 index 000000000..8660f37d1 --- /dev/null +++ b/operators/ew_unary/negate/negate_47_f32/Conformance-result-0.json @@ -0,0 +1,52 @@ +{ + "type": "float32", + "data": [ + 1.3321083784103394, + 1.9091516733169556, + 1.6398085355758667, + -0.8894373774528503, + 0.15249107778072357, + 1.3549128770828247, + -0.004179100506007671, + 1.390751600265503, + -0.7852814793586731, + 0.2153749018907547, + 0.4759151041507721, + 0.7939516305923462, + -0.521130383014679, + 0.5527495741844177, + 1.6494003534317017, + 1.527976393699646, + -1.847590684890747, + -1.6343227624893188, + -0.7988285422325134, + 0.9365201592445374, + -1.876705527305603, + -1.1150035858154297, + -0.8675607442855835, + 0.20255398750305176, + 0.9110337495803833, + 1.614436149597168, + -1.6104096174240112, + 0.17689484357833862, + 1.1905465126037598, + 0.7761735320091248, + -0.3168782889842987, + 1.2929089069366455, + -1.426457166671753, + -1.0340781211853027, + -0.8778518438339233, + 0.27162784337997437, + -0.5092353820800781, + -0.3363918662071228, + -0.5993863940238953, + 1.6622227430343628, + 0.3367703855037689, + 1.833543300628662, + 0.024036722257733345, + 0.6805551648139954, + 1.4219032526016235, + 1.586388111114502, + -0.35057827830314636 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/negate/negate_47_f32/desc.json b/operators/ew_unary/negate/negate_47_f32/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/ew_unary/negate/negate_47_f32/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/negate/negate_47_f32/input-0.json b/operators/ew_unary/negate/negate_47_f32/input-0.json new file mode 100644 index 000000000..5aa5f2822 --- /dev/null +++ b/operators/ew_unary/negate/negate_47_f32/input-0.json @@ -0,0 +1,52 @@ +{ + "type": "float32", + "data": [ + -1.3321083784103394, + -1.9091516733169556, + -1.6398085355758667, + 0.8894373774528503, + -0.15249107778072357, + -1.3549128770828247, + 0.004179100506007671, + -1.390751600265503, + 0.7852814793586731, + -0.2153749018907547, + -0.4759151041507721, + -0.7939516305923462, + 0.521130383014679, + -0.5527495741844177, + -1.6494003534317017, + -1.527976393699646, + 1.847590684890747, + 1.6343227624893188, + 0.7988285422325134, + -0.9365201592445374, + 1.876705527305603, + 1.1150035858154297, + 0.8675607442855835, + -0.20255398750305176, + -0.9110337495803833, + -1.614436149597168, + 1.6104096174240112, + -0.17689484357833862, + -1.1905465126037598, + -0.7761735320091248, + 0.3168782889842987, + -1.2929089069366455, + 1.426457166671753, + 1.0340781211853027, + 0.8778518438339233, + -0.27162784337997437, + 0.5092353820800781, + 0.3363918662071228, + 0.5993863940238953, + -1.6622227430343628, + -0.3367703855037689, + -1.833543300628662, + -0.024036722257733345, + -0.6805551648139954, + -1.4219032526016235, + -1.586388111114502, + 0.35057827830314636 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/negate/negate_47_f32/test.json b/operators/ew_unary/negate/negate_47_f32/test.json new file mode 100644 index 000000000..37ee21264 --- /dev/null +++ b/operators/ew_unary/negate/negate_47_f32/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: 0, + output_zp: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 47 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 47 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |