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/log/log_ERRORIF_WrongOutputType_12_f16 | |
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/log/log_ERRORIF_WrongOutputType_12_f16')
3 files changed, 90 insertions, 0 deletions
diff --git a/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/desc.json b/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/desc.json @@ -0,0 +1,21 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/input-0.json b/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/input-0.json new file mode 100644 index 000000000..497b90c4d --- /dev/null +++ b/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/input-0.json @@ -0,0 +1,17 @@ +{ + "type": "float16", + "data": [ + 0.049285888671875, + 0.06524658203125, + 0.414794921875, + 0.3349609375, + 0.61572265625, + 0.03790283203125, + 0.167724609375, + 0.2095947265625, + 0.4404296875, + 0.246826171875, + 0.1376953125, + 0.59765625 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/test.json b/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/test.json new file mode 100644 index 000000000..9caaa5266 --- /dev/null +++ b/operators/ew_unary/log/log_ERRORIF_WrongOutputType_12_f16/test.json @@ -0,0 +1,52 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "LOG", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 12 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |