diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-12-05 17:00:23 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-01-11 17:39:50 +0000 |
commit | c9b776bfc8433d9d4ef1cd9a5502d1b35827ff27 (patch) | |
tree | 8626f5d7ac0e0755c71dd2c7deb7f0b690be10b1 /operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32 | |
parent | 59dba4bee812c3fddd8d5ed20464f8417a6997c4 (diff) | |
download | conformance_tests-c9b776bfc8433d9d4ef1cd9a5502d1b35827ff27.tar.gz |
Create MI tests for EW Binary: POW
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Ia6310d487daab336d27c48923be95a9a677be678
Diffstat (limited to 'operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32')
4 files changed, 114 insertions, 0 deletions
diff --git a/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/desc.json b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/desc.json new file mode 100644 index 000000000..c1f41190c --- /dev/null +++ b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/desc.json @@ -0,0 +1,23 @@ +{ + "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": 2, + "expected_failure": true, + "expected_failure_desc": "Input Dimensions do not match output", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/input-0.json b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/input-0.json new file mode 100644 index 000000000..c0b36858d --- /dev/null +++ b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/input-0.json @@ -0,0 +1,17 @@ +{ + "type": "float32", + "data": [ + 0.7137537002563477, + 0.055047452449798584, + 0.22165676951408386, + 0.8434544205665588, + 0.5802261233329773, + 0.01492649782449007, + 0.7909114956855774, + 0.08959338814020157, + 0.6496771574020386, + 0.5175334215164185, + 0.6456113457679749, + 0.6228034496307373 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/input-1.json b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/input-1.json new file mode 100644 index 000000000..71a1fba7e --- /dev/null +++ b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/input-1.json @@ -0,0 +1,18 @@ +{ + "type": "float32", + "data": [ + 0.46584200859069824, + 0.6529077887535095, + 0.7972179651260376, + 0.6837944984436035, + 0.18537791073322296, + 0.8882873058319092, + 0.7755180597305298, + 0.16547642648220062, + 0.02631755731999874, + 0.018205584958195686, + 0.1966053694486618, + 0.6315892338752747, + 0.06983292102813721 + ] +}
\ No newline at end of file diff --git a/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/test.json b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/test.json new file mode 100644 index 000000000..01c7f1fb9 --- /dev/null +++ b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/test.json @@ -0,0 +1,56 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 13 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 12 + ], + type: "FP32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] +} |