From 7d3ec0e4ed28c02203816f8169a8d29465c4dcb9 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 16 Jan 2023 15:54:36 +0000 Subject: Create MI tests for EW Unary: LOG, RECIPROCAL, RSQRT, EXP Also regen TRANSPOSE and GREATER ERROR_IF tests due to generator change to using correct filtering. Signed-off-by: Jeremy Johnson Change-Id: Id68e583a736b784c94d8cdad50a27a3dbdbf5215 --- .../reciprocal_52_f16/Conformance-result-0.json | 57 ++++++++++++++++++++++ .../reciprocal/reciprocal_52_f16/desc.json | 23 +++++++++ .../reciprocal/reciprocal_52_f16/input-0.json | 57 ++++++++++++++++++++++ .../reciprocal/reciprocal_52_f16/test.json | 52 ++++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 operators/ew_unary/reciprocal/reciprocal_52_f16/Conformance-result-0.json create mode 100644 operators/ew_unary/reciprocal/reciprocal_52_f16/desc.json create mode 100644 operators/ew_unary/reciprocal/reciprocal_52_f16/input-0.json create mode 100644 operators/ew_unary/reciprocal/reciprocal_52_f16/test.json (limited to 'operators/ew_unary/reciprocal/reciprocal_52_f16') diff --git a/operators/ew_unary/reciprocal/reciprocal_52_f16/Conformance-result-0.json b/operators/ew_unary/reciprocal/reciprocal_52_f16/Conformance-result-0.json new file mode 100644 index 000000000..75f3d60d2 --- /dev/null +++ b/operators/ew_unary/reciprocal/reciprocal_52_f16/Conformance-result-0.json @@ -0,0 +1,57 @@ +{ + "type": "float16", + "data": [ + -0.72314453125, + 1.365234375, + 1.021484375, + 0.53466796875, + -1.435546875, + -1.9306640625, + -8.2109375, + -0.80517578125, + -0.67529296875, + -10.2890625, + -0.9150390625, + 1.47265625, + -3.9765625, + 0.75146484375, + 1.248046875, + -1.33203125, + 0.75244140625, + 0.8203125, + -2.220703125, + -1.1806640625, + 1.3701171875, + -0.69384765625, + -0.8330078125, + -0.50732421875, + 0.87158203125, + 1.5166015625, + 1.21875, + 0.890625, + -6.0859375, + 3.63671875, + -0.6943359375, + -0.6484375, + 1.484375, + -8.6484375, + 3.83203125, + 0.94384765625, + 1.85546875, + 4.6640625, + 4.22265625, + -1.275390625, + -0.53271484375, + -3.94921875, + -0.8759765625, + -2.732421875, + 0.70703125, + -0.939453125, + -0.56591796875, + -1.1435546875, + -1.2109375, + 1.544921875, + 4.3828125, + 0.88037109375 + ] +} \ No newline at end of file diff --git a/operators/ew_unary/reciprocal/reciprocal_52_f16/desc.json b/operators/ew_unary/reciprocal/reciprocal_52_f16/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/ew_unary/reciprocal/reciprocal_52_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/reciprocal/reciprocal_52_f16/input-0.json b/operators/ew_unary/reciprocal/reciprocal_52_f16/input-0.json new file mode 100644 index 000000000..3610f726c --- /dev/null +++ b/operators/ew_unary/reciprocal/reciprocal_52_f16/input-0.json @@ -0,0 +1,57 @@ +{ + "type": "float16", + "data": [ + -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, + -1.876953125, + -0.253173828125, + -1.1416015625, + -0.365966796875, + 1.4140625, + -1.064453125, + -1.7666015625, + -0.87451171875, + -0.82568359375, + 0.6474609375, + 0.2281494140625, + 1.1357421875 + ] +} \ No newline at end of file diff --git a/operators/ew_unary/reciprocal/reciprocal_52_f16/test.json b/operators/ew_unary/reciprocal/reciprocal_52_f16/test.json new file mode 100644 index 000000000..445fc8fe2 --- /dev/null +++ b/operators/ew_unary/reciprocal/reciprocal_52_f16/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "RECIPROCAL", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 52 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 52 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} -- cgit v1.2.1