diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-16 15:54:36 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-17 09:18:19 +0000 |
commit | 7d3ec0e4ed28c02203816f8169a8d29465c4dcb9 (patch) | |
tree | 9a04e8b90c4398926a181c1d6a06ab7e47792659 /operators/ew_unary/rsqrt/rsqrt_19_f32 | |
parent | b08fb3e856b7757403ff9aafc9487f9c0ad61fe7 (diff) | |
download | conformance_tests-7d3ec0e4ed28c02203816f8169a8d29465c4dcb9.tar.gz |
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 <jeremy.johnson@arm.com>
Change-Id: Id68e583a736b784c94d8cdad50a27a3dbdbf5215
Diffstat (limited to 'operators/ew_unary/rsqrt/rsqrt_19_f32')
4 files changed, 123 insertions, 0 deletions
diff --git a/operators/ew_unary/rsqrt/rsqrt_19_f32/Conformance-result-0.json b/operators/ew_unary/rsqrt/rsqrt_19_f32/Conformance-result-0.json new file mode 100644 index 000000000..d8681936c --- /dev/null +++ b/operators/ew_unary/rsqrt/rsqrt_19_f32/Conformance-result-0.json @@ -0,0 +1,24 @@ +{ + "type": "float32", + "data": [ + NaN, + NaN, + 0.765377402305603, + 1.3182332515716553, + 0.8800939917564392, + NaN, + NaN, + 2.1401007175445557, + NaN, + 0.8735291361808777, + 1.3779575824737549, + 0.9842066764831543, + NaN, + 0.7287839651107788, + 0.7974561452865601, + 0.9476506114006042, + NaN, + NaN, + NaN + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/rsqrt/rsqrt_19_f32/desc.json b/operators/ew_unary/rsqrt/rsqrt_19_f32/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/ew_unary/rsqrt/rsqrt_19_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/rsqrt/rsqrt_19_f32/input-0.json b/operators/ew_unary/rsqrt/rsqrt_19_f32/input-0.json new file mode 100644 index 000000000..12774fbb7 --- /dev/null +++ b/operators/ew_unary/rsqrt/rsqrt_19_f32/input-0.json @@ -0,0 +1,24 @@ +{ + "type": "float32", + "data": [ + -0.19845624268054962, + -0.5168079137802124, + 1.7070599794387817, + 0.5754604935646057, + 1.2910465002059937, + -0.22634319961071014, + -1.0910451412200928, + 0.21833914518356323, + -1.7447309494018555, + 1.3105247020721436, + 0.5266575813293457, + 1.032351016998291, + -0.5818961262702942, + 1.8827921152114868, + 1.5724844932556152, + 1.1135339736938477, + -1.2214452028274536, + -0.1331159919500351, + -1.8247849941253662 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/rsqrt/rsqrt_19_f32/test.json b/operators/ew_unary/rsqrt/rsqrt_19_f32/test.json new file mode 100644 index 000000000..e46ea3744 --- /dev/null +++ b/operators/ew_unary/rsqrt/rsqrt_19_f32/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "RSQRT", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 19 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 19 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |