diff options
author | James Ward <james.ward@arm.com> | 2022-12-15 13:50:37 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-12-15 16:42:48 +0000 |
commit | ff47fea5f558845c7ff6bd07e89318a108736aa2 (patch) | |
tree | 53a46a385374707ceb0eb5a885098120534aa097 /operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0 | |
parent | 1aa23bd44af0ae508dc83d26e66dfc6d68d837f8 (diff) | |
download | conformance_tests-ff47fea5f558845c7ff6bd07e89318a108736aa2.tar.gz |
Create MI tests for Image: RESIZE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I95efbad04b950f0aa0e4ea3729ec1da94502d6b3
Diffstat (limited to 'operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0')
3 files changed, 1018 insertions, 0 deletions
diff --git a/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/desc.json b/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/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/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/input-0.json b/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/input-0.json new file mode 100644 index 000000000..29f014f7d --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/input-0.json @@ -0,0 +1,927 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + 0.0615234375, + 0.429443359375, + 0.465087890625, + 0.10455322265625, + 0.258056640625, + 0.802734375, + 0.70263671875 + ], + [ + 0.580078125, + 0.78857421875, + 0.440185546875, + 0.98583984375, + 0.449462890625, + 0.80810546875, + 0.55859375 + ], + [ + 0.64111328125, + 0.80126953125, + 0.85595703125, + 0.662109375, + 0.05224609375, + 0.06903076171875, + 0.8896484375 + ], + [ + 0.367431640625, + 0.4501953125, + 0.74365234375, + 0.33251953125, + 0.034423828125, + 0.1881103515625, + 0.1031494140625 + ], + [ + 0.5947265625, + 0.10308837890625, + 0.5498046875, + 0.0119171142578125, + 0.48486328125, + 0.284912109375, + 0.44873046875 + ], + [ + 0.560546875, + 0.1907958984375, + 0.260009765625, + 0.2459716796875, + 0.63037109375, + 0.2080078125, + 0.521484375 + ], + [ + 0.0230712890625, + 0.10919189453125, + 0.9150390625, + 0.681640625, + 0.370361328125, + 0.66259765625, + 0.69873046875 + ], + [ + 0.84521484375, + 0.083251953125, + 0.47900390625, + 0.65283203125, + 0.244873046875, + 0.81787109375, + 0.86962890625 + ], + [ + 0.58984375, + 0.767578125, + 0.66650390625, + 0.5068359375, + 0.412109375, + 0.82080078125, + 0.28955078125 + ], + [ + 0.58837890625, + 0.1334228515625, + 0.41748046875, + 0.56005859375, + 0.77783203125, + 0.7294921875, + 0.2486572265625 + ] + ], + [ + [ + 0.69775390625, + 0.69970703125, + 0.27490234375, + 0.2132568359375, + 0.939453125, + 0.49462890625, + 0.35546875 + ], + [ + 0.475341796875, + 0.1424560546875, + 0.310302734375, + 0.176025390625, + 0.91650390625, + 0.54931640625, + 0.12396240234375 + ], + [ + 0.219970703125, + 0.52783203125, + 0.51806640625, + 0.892578125, + 0.144775390625, + 0.376220703125, + 0.27587890625 + ], + [ + 0.43994140625, + 0.368408203125, + 0.275146484375, + 0.51708984375, + 0.61376953125, + 0.0295562744140625, + 0.66162109375 + ], + [ + 0.2384033203125, + 0.321533203125, + 0.454345703125, + 0.671875, + 0.0130157470703125, + 0.039459228515625, + 0.06451416015625 + ], + [ + 0.040313720703125, + 0.9365234375, + 0.6240234375, + 0.0264129638671875, + 0.94580078125, + 0.79052734375, + 0.2120361328125 + ], + [ + 0.08935546875, + 0.09234619140625, + 0.130859375, + 0.3291015625, + 0.9169921875, + 0.0626220703125, + 0.72314453125 + ], + [ + 0.384521484375, + 0.3505859375, + 0.56591796875, + 0.039398193359375, + 0.3115234375, + 0.335693359375, + 0.95263671875 + ], + [ + 0.3984375, + 0.75927734375, + 0.46630859375, + 0.261474609375, + 0.1043701171875, + 0.97412109375, + 0.2587890625 + ], + [ + 0.404296875, + 0.47216796875, + 0.60205078125, + 0.1611328125, + 0.611328125, + 0.87646484375, + 0.8525390625 + ] + ], + [ + [ + 0.74755859375, + 0.289306640625, + 0.295166015625, + 0.9033203125, + 0.513671875, + 0.55322265625, + 0.090087890625 + ], + [ + 0.94921875, + 0.9853515625, + 0.01141357421875, + 0.8818359375, + 0.298828125, + 0.82958984375, + 0.447998046875 + ], + [ + 0.87744140625, + 0.97802734375, + 0.5361328125, + 0.2125244140625, + 0.7412109375, + 0.0706787109375, + 0.10723876953125 + ], + [ + 0.232177734375, + 0.4091796875, + 0.130126953125, + 0.9921875, + 0.68310546875, + 0.57080078125, + 0.8466796875 + ], + [ + 0.68505859375, + 0.814453125, + 0.208740234375, + 0.6865234375, + 0.9931640625, + 0.90185546875, + 0.67236328125 + ], + [ + 0.393798828125, + 0.264892578125, + 0.7744140625, + 0.8896484375, + 0.342041015625, + 0.5048828125, + 0.95556640625 + ], + [ + 0.03424072265625, + 0.04925537109375, + 0.44775390625, + 0.6953125, + 0.2032470703125, + 0.689453125, + 0.1416015625 + ], + [ + 0.72509765625, + 0.59130859375, + 0.5439453125, + 0.484619140625, + 0.074462890625, + 0.385986328125, + 0.374267578125 + ], + [ + 0.330322265625, + 0.10546875, + 0.55322265625, + 0.1318359375, + 0.93115234375, + 0.716796875, + 0.44921875 + ], + [ + 0.74462890625, + 0.75537109375, + 0.3935546875, + 0.78662109375, + 0.011688232421875, + 0.611328125, + 0.9775390625 + ] + ], + [ + [ + 0.09735107421875, + 0.1610107421875, + 0.94921875, + 0.44873046875, + 0.818359375, + 0.27392578125, + 0.6123046875 + ], + [ + 0.33251953125, + 0.499755859375, + 0.77734375, + 0.244140625, + 0.478759765625, + 0.323486328125, + 0.95068359375 + ], + [ + 0.88037109375, + 0.5048828125, + 0.007549285888671875, + 0.50537109375, + 0.1929931640625, + 0.01148223876953125, + 0.11773681640625 + ], + [ + 0.0231475830078125, + 0.219482421875, + 0.78173828125, + 0.74853515625, + 0.297607421875, + 0.13427734375, + 0.6982421875 + ], + [ + 0.97021484375, + 0.9140625, + 0.705078125, + 0.440185546875, + 0.93505859375, + 0.30029296875, + 0.00238037109375 + ], + [ + 0.64892578125, + 0.8310546875, + 0.477294921875, + 0.37744140625, + 0.27978515625, + 0.73681640625, + 0.050018310546875 + ], + [ + 0.05523681640625, + 0.88671875, + 0.1802978515625, + 0.027862548828125, + 0.27197265625, + 0.07574462890625, + 0.6123046875 + ], + [ + 0.138671875, + 0.78955078125, + 0.482666015625, + 0.481201171875, + 0.935546875, + 0.78515625, + 0.646484375 + ], + [ + 0.3173828125, + 0.2252197265625, + 0.48974609375, + 0.75341796875, + 0.051025390625, + 0.314453125, + 0.29833984375 + ], + [ + 0.931640625, + 0.43408203125, + 0.89892578125, + 0.44921875, + 0.5322265625, + 0.93896484375, + 0.876953125 + ] + ], + [ + [ + 0.346923828125, + 0.69677734375, + 0.061798095703125, + 0.9677734375, + 0.202880859375, + 0.357177734375, + 0.1883544921875 + ], + [ + 0.1334228515625, + 0.81494140625, + 0.61083984375, + 0.92333984375, + 0.91748046875, + 0.308349609375, + 0.81640625 + ], + [ + 0.339111328125, + 0.392822265625, + 0.01221466064453125, + 0.034210205078125, + 0.55859375, + 0.40771484375, + 0.8798828125 + ], + [ + 0.87548828125, + 0.77783203125, + 0.1737060546875, + 0.196044921875, + 0.169189453125, + 0.076904296875, + 0.93212890625 + ], + [ + 0.023712158203125, + 0.19970703125, + 0.1702880859375, + 0.1082763671875, + 0.211181640625, + 0.325927734375, + 0.0953369140625 + ], + [ + 0.59521484375, + 0.43994140625, + 0.1375732421875, + 0.83056640625, + 0.096923828125, + 0.146240234375, + 0.1875 + ], + [ + 0.393798828125, + 0.341796875, + 0.22705078125, + 0.89404296875, + 0.59619140625, + 0.06549072265625, + 0.94091796875 + ], + [ + 0.2822265625, + 0.281982421875, + 0.67724609375, + 0.042724609375, + 0.58349609375, + 0.277587890625, + 0.423828125 + ], + [ + 0.6923828125, + 0.331787109375, + 0.51123046875, + 0.6337890625, + 0.408203125, + 0.591796875, + 0.4951171875 + ], + [ + 0.78271484375, + 0.57763671875, + 0.91015625, + 0.50048828125, + 0.12890625, + 0.31396484375, + 0.44482421875 + ] + ], + [ + [ + 0.66064453125, + 0.4189453125, + 0.6396484375, + 0.74169921875, + 0.1285400390625, + 0.8916015625, + 0.7607421875 + ], + [ + 0.9677734375, + 0.53515625, + 0.8798828125, + 0.7666015625, + 0.104736328125, + 0.267578125, + 0.69775390625 + ], + [ + 0.93212890625, + 0.07513427734375, + 0.033966064453125, + 0.36669921875, + 0.11181640625, + 0.367919921875, + 0.343017578125 + ], + [ + 0.28564453125, + 0.425537109375, + 0.70263671875, + 0.299072265625, + 0.1754150390625, + 0.31201171875, + 0.875 + ], + [ + 0.55126953125, + 0.5341796875, + 0.044464111328125, + 0.9462890625, + 0.63037109375, + 0.66357421875, + 0.93359375 + ], + [ + 0.099609375, + 0.3984375, + 0.42041015625, + 0.69580078125, + 0.556640625, + 0.90625, + 0.853515625 + ], + [ + 0.4990234375, + 0.556640625, + 0.2479248046875, + 0.73681640625, + 0.1259765625, + 0.0160675048828125, + 0.625 + ], + [ + 0.6171875, + 0.372314453125, + 0.572265625, + 0.53564453125, + 0.0802001953125, + 0.270263671875, + 0.5283203125 + ], + [ + 0.172119140625, + 0.70751953125, + 0.279052734375, + 0.9443359375, + 0.2486572265625, + 0.38916015625, + 0.63671875 + ], + [ + 0.931640625, + 0.59716796875, + 0.1302490234375, + 0.85009765625, + 0.87890625, + 0.385498046875, + 0.33349609375 + ] + ], + [ + [ + 0.52685546875, + 0.030792236328125, + 0.1590576171875, + 0.6845703125, + 0.2381591796875, + 0.5322265625, + 0.56201171875 + ], + [ + 0.94775390625, + 0.78125, + 0.5908203125, + 0.54296875, + 0.734375, + 0.65478515625, + 0.485107421875 + ], + [ + 0.53955078125, + 0.998046875, + 0.381591796875, + 0.279296875, + 0.99072265625, + 0.134033203125, + 0.8515625 + ], + [ + 0.06317138671875, + 0.931640625, + 0.25634765625, + 0.7138671875, + 0.30419921875, + 0.9873046875, + 0.67529296875 + ], + [ + 0.1165771484375, + 0.315185546875, + 0.463623046875, + 0.35107421875, + 0.436279296875, + 0.83642578125, + 0.708984375 + ], + [ + 0.6806640625, + 0.2978515625, + 0.923828125, + 0.8388671875, + 0.0721435546875, + 0.54052734375, + 0.82275390625 + ], + [ + 0.010650634765625, + 0.248291015625, + 0.73828125, + 0.2763671875, + 0.775390625, + 0.0914306640625, + 0.2406005859375 + ], + [ + 0.728515625, + 0.6796875, + 0.07440185546875, + 0.0938720703125, + 0.24267578125, + 0.52587890625, + 0.059234619140625 + ], + [ + 0.552734375, + 0.2210693359375, + 0.051483154296875, + 0.6689453125, + 0.222412109375, + 0.2247314453125, + 0.25634765625 + ], + [ + 0.040985107421875, + 0.99853515625, + 0.69580078125, + 0.3388671875, + 0.1571044921875, + 0.974609375, + 0.050018310546875 + ] + ], + [ + [ + 0.9375, + 0.1180419921875, + 0.73486328125, + 0.9521484375, + 0.1329345703125, + 0.3603515625, + 0.8359375 + ], + [ + 0.473388671875, + 0.46435546875, + 0.96484375, + 0.08404541015625, + 0.7802734375, + 0.6865234375, + 0.9560546875 + ], + [ + 0.5927734375, + 0.11083984375, + 0.0245513916015625, + 0.55712890625, + 0.213623046875, + 0.5439453125, + 0.2958984375 + ], + [ + 0.66650390625, + 0.2142333984375, + 0.1099853515625, + 0.55712890625, + 0.89013671875, + 0.1295166015625, + 0.049468994140625 + ], + [ + 0.44677734375, + 0.94189453125, + 0.6494140625, + 0.0692138671875, + 0.40771484375, + 0.2607421875, + 0.1124267578125 + ], + [ + 0.260986328125, + 0.425537109375, + 0.84814453125, + 0.45263671875, + 0.63330078125, + 0.7353515625, + 0.0224151611328125 + ], + [ + 0.87841796875, + 0.91162109375, + 0.662109375, + 0.88623046875, + 0.495849609375, + 0.27978515625, + 0.39599609375 + ], + [ + 0.1429443359375, + 0.0711669921875, + 0.2227783203125, + 0.388427734375, + 0.52490234375, + 0.33056640625, + 0.2099609375 + ], + [ + 0.80712890625, + 0.292724609375, + 0.4423828125, + 0.11737060546875, + 0.29248046875, + 0.67578125, + 0.12548828125 + ], + [ + 0.62890625, + 0.374755859375, + 0.912109375, + 0.472412109375, + 0.271484375, + 0.233642578125, + 0.40576171875 + ] + ], + [ + [ + 0.61083984375, + 0.6123046875, + 0.78564453125, + 0.8955078125, + 0.27294921875, + 0.8662109375, + 0.77880859375 + ], + [ + 0.69140625, + 0.287109375, + 0.61572265625, + 0.54736328125, + 0.91162109375, + 0.7265625, + 0.038330078125 + ], + [ + 0.86376953125, + 0.160888671875, + 0.00791168212890625, + 0.69677734375, + 0.9599609375, + 0.576171875, + 0.79296875 + ], + [ + 0.53466796875, + 0.98291015625, + 0.5625, + 0.329833984375, + 0.9296875, + 0.236572265625, + 0.9755859375 + ], + [ + 0.5185546875, + 0.79833984375, + 0.318115234375, + 0.298095703125, + 0.425048828125, + 0.210693359375, + 0.1744384765625 + ], + [ + 0.873046875, + 0.11651611328125, + 0.78076171875, + 0.4501953125, + 0.80224609375, + 0.077880859375, + 0.8564453125 + ], + [ + 0.1229248046875, + 0.71630859375, + 0.70166015625, + 0.63720703125, + 0.75244140625, + 0.6904296875, + 0.9775390625 + ], + [ + 0.8046875, + 0.21728515625, + 0.96826171875, + 0.7099609375, + 0.2432861328125, + 0.63671875, + 0.78076171875 + ], + [ + 0.97119140625, + 0.515625, + 0.52001953125, + 0.04205322265625, + 0.1932373046875, + 0.75634765625, + 0.982421875 + ], + [ + 0.165283203125, + 0.051483154296875, + 0.51318359375, + 0.7568359375, + 0.6796875, + 0.1717529296875, + 0.255615234375 + ] + ], + [ + [ + 0.1287841796875, + 0.0186767578125, + 0.344970703125, + 0.265380859375, + 0.375732421875, + 0.67822265625, + 0.25537109375 + ], + [ + 0.6923828125, + 0.71435546875, + 0.67041015625, + 0.441650390625, + 0.056365966796875, + 0.36669921875, + 0.68212890625 + ], + [ + 0.6787109375, + 0.32275390625, + 0.1575927734375, + 0.501953125, + 0.58544921875, + 0.56787109375, + 0.4189453125 + ], + [ + 0.666015625, + 0.66796875, + 0.55078125, + 0.490966796875, + 0.775390625, + 0.32177734375, + 0.939453125 + ], + [ + 0.351318359375, + 0.7626953125, + 0.1904296875, + 0.9111328125, + 0.398193359375, + 0.4365234375, + 0.9423828125 + ], + [ + 0.875, + 0.00440216064453125, + 0.6240234375, + 0.50927734375, + 0.826171875, + 0.330322265625, + 0.400634765625 + ], + [ + 0.29150390625, + 0.9716796875, + 0.451416015625, + 0.7861328125, + 0.1932373046875, + 0.7294921875, + 0.66748046875 + ], + [ + 0.389892578125, + 0.89453125, + 0.00506591796875, + 0.7861328125, + 0.162841796875, + 0.421875, + 0.59912109375 + ], + [ + 0.30224609375, + 0.40283203125, + 0.611328125, + 0.466796875, + 0.36474609375, + 0.7490234375, + 0.51953125 + ], + [ + 0.6455078125, + 0.81201171875, + 0.0819091796875, + 0.2305908203125, + 0.053924560546875, + 0.8095703125, + 0.97021484375 + ] + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/test.json b/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/test.json new file mode 100644 index 000000000..78e5988f4 --- /dev/null +++ b/operators/image/resize/resize_ERRORIF_WrongOutputType_1x10x10x7_f16_modeB_outi48_sc3x1x2x1_off0x0_bor0x0/test.json @@ -0,0 +1,70 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "RESIZE", + attribute_type: "ResizeAttribute", + attribute: { + scale: [ + 3, + 1, + 2, + 1 + ], + offset: [ + 0, + 0 + ], + border: [ + 0, + 0 + ], + mode: "BILINEAR" + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 10, + 10, + 7 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 1, + 28, + 19, + 7 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |