aboutsummaryrefslogtreecommitdiff
path: root/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-12-05 17:00:23 +0000
committerEric Kunze <eric.kunze@arm.com>2023-01-11 17:39:50 +0000
commitc9b776bfc8433d9d4ef1cd9a5502d1b35827ff27 (patch)
tree8626f5d7ac0e0755c71dd2c7deb7f0b690be10b1 /operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32
parent59dba4bee812c3fddd8d5ed20464f8417a6997c4 (diff)
downloadconformance_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_WrongOutputType_10x2x9_f32')
-rw-r--r--operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/desc.json23
-rw-r--r--operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-0.json245
-rw-r--r--operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-1.json135
-rw-r--r--operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json62
4 files changed, 465 insertions, 0 deletions
diff --git a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/desc.json b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/desc.json
new file mode 100644
index 000000000..4517bc2ab
--- /dev/null
+++ b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_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": "Output data type not supported for this configuration of operator",
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-0.json b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-0.json
new file mode 100644
index 000000000..9f093b1a1
--- /dev/null
+++ b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-0.json
@@ -0,0 +1,245 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.09836860746145248,
+ 0.9074786901473999,
+ 0.2748120427131653,
+ 0.9888038635253906,
+ 0.8582814335823059,
+ 0.6617946624755859,
+ 0.8890409469604492,
+ 0.8148927688598633,
+ 0.6562662720680237
+ ],
+ [
+ 0.5844762325286865,
+ 0.7386535406112671,
+ 0.18949130177497864,
+ 0.6605944633483887,
+ 0.05801453813910484,
+ 0.8736039996147156,
+ 0.7038096189498901,
+ 0.12406649440526962,
+ 0.9635071158409119
+ ]
+ ],
+ [
+ [
+ 0.9601379632949829,
+ 0.5659717321395874,
+ 0.006754421629011631,
+ 0.8659124374389648,
+ 0.9001758098602295,
+ 0.1386268436908722,
+ 0.4803800880908966,
+ 0.9317667484283447,
+ 0.8439645171165466
+ ],
+ [
+ 0.9544602036476135,
+ 0.7115582823753357,
+ 0.2546539604663849,
+ 0.711621880531311,
+ 0.43164271116256714,
+ 0.7051865458488464,
+ 0.474846750497818,
+ 0.852534294128418,
+ 0.6125445365905762
+ ]
+ ],
+ [
+ [
+ 0.3789663016796112,
+ 0.26735955476760864,
+ 0.7253145575523376,
+ 0.8778502345085144,
+ 0.9409024119377136,
+ 0.9010482430458069,
+ 0.027075694873929024,
+ 0.6083112359046936,
+ 0.7183579206466675
+ ],
+ [
+ 0.21774223446846008,
+ 0.30734652280807495,
+ 0.722658634185791,
+ 0.9343991875648499,
+ 0.19608595967292786,
+ 0.7458477020263672,
+ 0.4257355034351349,
+ 0.3108649253845215,
+ 0.2942626178264618
+ ]
+ ],
+ [
+ [
+ 0.8234353065490723,
+ 0.058055777102708817,
+ 0.7483487129211426,
+ 0.26060277223587036,
+ 0.31622427701950073,
+ 0.7123004794120789,
+ 0.4901658296585083,
+ 0.0577126108109951,
+ 0.7910153865814209
+ ],
+ [
+ 0.45481839776039124,
+ 0.39314788579940796,
+ 0.5537627339363098,
+ 0.6732165217399597,
+ 0.9470692873001099,
+ 0.06439366936683655,
+ 0.6743695139884949,
+ 0.15431752800941467,
+ 0.003903803648427129
+ ]
+ ],
+ [
+ [
+ 0.8279999494552612,
+ 0.9530036449432373,
+ 0.3068329691886902,
+ 0.4603251516819,
+ 0.5883463025093079,
+ 0.6034966707229614,
+ 0.83363938331604,
+ 0.34396645426750183,
+ 0.6085482835769653
+ ],
+ [
+ 0.0873037651181221,
+ 0.822239875793457,
+ 0.6636427640914917,
+ 0.5999244451522827,
+ 0.05742397531867027,
+ 0.050025083124637604,
+ 0.08430366218090057,
+ 0.23140551149845123,
+ 0.4279295802116394
+ ]
+ ],
+ [
+ [
+ 0.43726682662963867,
+ 0.15667663514614105,
+ 0.44386816024780273,
+ 0.5159724354743958,
+ 0.10007701814174652,
+ 0.12423501908779144,
+ 0.743787944316864,
+ 0.9974372386932373,
+ 0.18609005212783813
+ ],
+ [
+ 0.46377402544021606,
+ 0.18758581578731537,
+ 0.05933724343776703,
+ 0.18024472892284393,
+ 0.35989904403686523,
+ 0.5482994318008423,
+ 0.5238507390022278,
+ 0.4503777027130127,
+ 0.3594054579734802
+ ]
+ ],
+ [
+ [
+ 0.38290727138519287,
+ 0.0022244390565901995,
+ 0.2233286052942276,
+ 0.17414504289627075,
+ 0.582706868648529,
+ 0.44684678316116333,
+ 0.21894623339176178,
+ 0.13157694041728973,
+ 0.6758458614349365
+ ],
+ [
+ 0.9001933336257935,
+ 0.25550732016563416,
+ 0.6145592331886292,
+ 0.16131629049777985,
+ 0.24162106215953827,
+ 0.18337510526180267,
+ 0.5421023368835449,
+ 0.04241514205932617,
+ 0.4651007056236267
+ ]
+ ],
+ [
+ [
+ 0.9009943008422852,
+ 0.13974642753601074,
+ 0.5907641053199768,
+ 0.041686784476041794,
+ 0.5504375100135803,
+ 0.7929612994194031,
+ 0.19479818642139435,
+ 0.3830118775367737,
+ 0.41654103994369507
+ ],
+ [
+ 0.86249178647995,
+ 0.04236402362585068,
+ 0.31695884466171265,
+ 0.09729752689599991,
+ 0.6590560674667358,
+ 0.5130236148834229,
+ 0.5333330035209656,
+ 0.1750624030828476,
+ 0.3704959750175476
+ ]
+ ],
+ [
+ [
+ 0.874335765838623,
+ 0.6181918978691101,
+ 0.8615903854370117,
+ 0.6303741931915283,
+ 0.5740910172462463,
+ 0.8985838890075684,
+ 0.5008569955825806,
+ 0.7180023193359375,
+ 0.11909555643796921
+ ],
+ [
+ 0.18473847210407257,
+ 0.4547312259674072,
+ 0.34336504340171814,
+ 0.23348110914230347,
+ 0.3299228250980377,
+ 0.6834871768951416,
+ 0.6420380473136902,
+ 0.11694402992725372,
+ 0.9849218130111694
+ ]
+ ],
+ [
+ [
+ 0.6993718147277832,
+ 0.22340908646583557,
+ 0.08707766979932785,
+ 0.8890339136123657,
+ 0.36284875869750977,
+ 0.23017649352550507,
+ 0.281886488199234,
+ 0.26816970109939575,
+ 0.775831401348114
+ ],
+ [
+ 0.6446269154548645,
+ 0.34695562720298767,
+ 0.3304971158504486,
+ 0.9568547010421753,
+ 0.6441360712051392,
+ 0.7239927053451538,
+ 0.29805153608322144,
+ 0.9902519583702087,
+ 0.7464146614074707
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-1.json b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-1.json
new file mode 100644
index 000000000..f5c9c16bb
--- /dev/null
+++ b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/input-1.json
@@ -0,0 +1,135 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ [
+ 0.2403763085603714,
+ 0.9220856428146362,
+ 0.3885883092880249,
+ 0.06795863062143326,
+ 0.3751659393310547,
+ 0.809873640537262,
+ 0.4328365921974182,
+ 0.5207225680351257,
+ 0.48261624574661255
+ ]
+ ],
+ [
+ [
+ 0.9551698565483093,
+ 0.04376756399869919,
+ 0.27480241656303406,
+ 0.7785016894340515,
+ 0.06001182645559311,
+ 0.3458983600139618,
+ 0.8679418563842773,
+ 0.0992782860994339,
+ 0.16475699841976166
+ ]
+ ],
+ [
+ [
+ 0.3263111710548401,
+ 0.7206893563270569,
+ 0.36791518330574036,
+ 0.8284895420074463,
+ 0.004322267137467861,
+ 0.06455256789922714,
+ 0.8408488035202026,
+ 0.3835793435573578,
+ 0.5035144090652466
+ ]
+ ],
+ [
+ [
+ 0.9058630466461182,
+ 0.13402791321277618,
+ 0.6278355121612549,
+ 0.7462893128395081,
+ 0.4609059691429138,
+ 0.24867938458919525,
+ 0.019705289974808693,
+ 0.572291374206543,
+ 0.18692995607852936
+ ]
+ ],
+ [
+ [
+ 0.24351806938648224,
+ 0.3363218307495117,
+ 0.5854820013046265,
+ 0.8854935765266418,
+ 0.7440125346183777,
+ 0.5552095174789429,
+ 0.10171722620725632,
+ 0.18199916183948517,
+ 0.26839253306388855
+ ]
+ ],
+ [
+ [
+ 0.5944056510925293,
+ 0.6790469288825989,
+ 0.2896224856376648,
+ 0.5602108240127563,
+ 0.7368464469909668,
+ 0.5761398673057556,
+ 0.9710596799850464,
+ 0.19907420873641968,
+ 0.6653706431388855
+ ]
+ ],
+ [
+ [
+ 0.0486578531563282,
+ 0.06680458039045334,
+ 0.0032781236805021763,
+ 0.31735074520111084,
+ 0.029607465490698814,
+ 0.8653159737586975,
+ 0.503785252571106,
+ 0.7112981677055359,
+ 0.6974243521690369
+ ]
+ ],
+ [
+ [
+ 0.891067385673523,
+ 0.10267572104930878,
+ 0.04356659948825836,
+ 0.7130343914031982,
+ 0.8214482665061951,
+ 0.011836022138595581,
+ 0.5410733819007874,
+ 0.39903178811073303,
+ 0.9113333821296692
+ ]
+ ],
+ [
+ [
+ 0.6977900266647339,
+ 0.9809364676475525,
+ 0.3519122302532196,
+ 0.1411435455083847,
+ 0.7458156943321228,
+ 0.7508284449577332,
+ 0.4206305146217346,
+ 0.19047363102436066,
+ 0.07802355289459229
+ ]
+ ],
+ [
+ [
+ 0.640567421913147,
+ 0.19868133962154388,
+ 0.07477480918169022,
+ 0.6370410323143005,
+ 0.6240695714950562,
+ 0.5304663181304932,
+ 0.7561116814613342,
+ 0.35719090700149536,
+ 0.5172846913337708
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json
new file mode 100644
index 000000000..c8b9cf647
--- /dev/null
+++ b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json
@@ -0,0 +1,62 @@
+{
+ 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: [
+ 10,
+ 2,
+ 9
+ ],
+ type: "FP32"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 10,
+ 1,
+ 9
+ ],
+ type: "FP32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 2,
+ 9
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}