diff options
author | James Ward <james.ward@arm.com> | 2023-01-17 17:22:19 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2023-01-26 12:10:28 +0000 |
commit | e8c4df459931d92df458f42adfc6d164a701e2e4 (patch) | |
tree | 1760d2ab225e44db0434bc6fa73694f6dd952132 /operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5 | |
parent | de22a661323bcad18a67a318d9cda5ce9f2699a8 (diff) | |
download | conformance_tests-e8c4df459931d92df458f42adfc6d164a701e2e4.tar.gz |
Create MI tests for Data Layout: SLICE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I1be7f445a53791ca1395ef484725825b051afba3
Diffstat (limited to 'operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5')
3 files changed, 385 insertions, 0 deletions
diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/desc.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/desc.json new file mode 100644 index 000000000..199bfa93c --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/desc.json @@ -0,0 +1,22 @@ +{ + "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-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/input-0.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/input-0.json new file mode 100644 index 000000000..211bba61f --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/input-0.json @@ -0,0 +1,295 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.40634503960609436, + 0.3807288408279419, + 0.6949495077133179, + 0.6524402499198914, + 0.23396055400371552, + 0.3097977638244629, + 0.737075924873352 + ], + [ + 0.07484320551156998, + 0.901964008808136, + 0.8839269280433655, + 0.01797076128423214, + 0.7674973011016846, + 0.003640982089564204, + 0.3074895739555359 + ], + [ + 0.26619869470596313, + 0.7887353897094727, + 0.1425531506538391, + 0.296154648065567, + 0.7306850552558899, + 0.030599968507885933, + 0.277535080909729 + ] + ], + [ + [ + 0.9994875192642212, + 0.8560203313827515, + 0.6540238857269287, + 0.43101921677589417, + 0.7406743764877319, + 0.41455551981925964, + 0.07295860350131989 + ], + [ + 0.5035957098007202, + 0.6508116126060486, + 0.5780051946640015, + 0.5186107754707336, + 0.9824840426445007, + 0.004075741395354271, + 0.3930846154689789 + ], + [ + 0.1519434005022049, + 0.3826822340488434, + 0.35368359088897705, + 0.0460803285241127, + 0.14234428107738495, + 0.7670630216598511, + 0.40534865856170654 + ] + ], + [ + [ + 0.9097208976745605, + 0.9955833554267883, + 0.8833872675895691, + 0.6484673023223877, + 0.5583311319351196, + 0.7366252541542053, + 0.008098055608570576 + ], + [ + 0.11692122370004654, + 0.04201512783765793, + 0.8116863965988159, + 0.14980752766132355, + 0.9188467264175415, + 0.601422131061554, + 0.9961985349655151 + ], + [ + 0.7239014506340027, + 0.08749333024024963, + 0.4875146150588989, + 0.17206624150276184, + 0.0804399698972702, + 0.5975584387779236, + 0.35765373706817627 + ] + ], + [ + [ + 0.45174020528793335, + 0.45118194818496704, + 0.10897061228752136, + 0.005309422500431538, + 0.9197689294815063, + 0.35229966044425964, + 0.06665514409542084 + ], + [ + 0.37083709239959717, + 0.6787952184677124, + 0.554789662361145, + 0.28693458437919617, + 0.27213039994239807, + 0.6301787495613098, + 0.3836548924446106 + ], + [ + 0.6051433682441711, + 0.24064235389232635, + 0.35048025846481323, + 0.8326342105865479, + 0.5546900033950806, + 0.393182635307312, + 0.20848995447158813 + ] + ], + [ + [ + 0.6053139567375183, + 0.4039789140224457, + 0.3218632638454437, + 0.640449583530426, + 0.5883806943893433, + 0.21310392022132874, + 0.7673604488372803 + ], + [ + 0.7772416472434998, + 0.6095945239067078, + 0.6083904504776001, + 0.2920877933502197, + 0.3978104889392853, + 0.8585684299468994, + 0.837256908416748 + ], + [ + 0.8607960343360901, + 0.855418860912323, + 0.8415995240211487, + 0.4746209383010864, + 0.3493967354297638, + 0.9579362273216248, + 0.7622183561325073 + ] + ], + [ + [ + 0.01420128345489502, + 0.15641409158706665, + 0.6841603517532349, + 0.7638458609580994, + 0.10951917618513107, + 0.5631237626075745, + 0.564538300037384 + ], + [ + 0.4069480895996094, + 0.549834132194519, + 0.051352959126234055, + 0.41261860728263855, + 0.1723366677761078, + 0.6150128245353699, + 0.5514441132545471 + ], + [ + 0.0032904050312936306, + 0.9607607126235962, + 0.4016270339488983, + 0.22219905257225037, + 0.49604693055152893, + 0.611219048500061, + 0.9482497572898865 + ] + ], + [ + [ + 0.9475584626197815, + 0.721233069896698, + 0.7515751719474792, + 0.3534955382347107, + 0.32256197929382324, + 0.3572637140750885, + 0.38050806522369385 + ], + [ + 0.5967739224433899, + 0.5187108516693115, + 0.3534601628780365, + 0.7669272422790527, + 0.9807170033454895, + 0.5410165786743164, + 0.3522190749645233 + ], + [ + 0.7533714175224304, + 0.18845513463020325, + 0.5984536409378052, + 0.28253063559532166, + 0.18910320103168488, + 0.5326588749885559, + 0.1184781938791275 + ] + ], + [ + [ + 0.5406199097633362, + 0.863801121711731, + 0.7372398972511292, + 0.6351957321166992, + 0.0727713331580162, + 0.08772062510251999, + 0.8222141861915588 + ], + [ + 0.7867294549942017, + 0.1441044956445694, + 0.4799342751502991, + 0.9630426168441772, + 0.8023641705513, + 0.4453791379928589, + 0.42278191447257996 + ], + [ + 0.4801085889339447, + 0.0318589024245739, + 0.6435460448265076, + 0.43179208040237427, + 0.11060485243797302, + 0.013350517489016056, + 0.6135217547416687 + ] + ], + [ + [ + 0.5945360660552979, + 0.7697411775588989, + 0.12221094965934753, + 0.06317231804132462, + 0.8386165499687195, + 0.11546794325113297, + 0.12032528966665268 + ], + [ + 0.93956458568573, + 0.12313302606344223, + 0.4597241282463074, + 0.8855716586112976, + 0.26053377985954285, + 0.44795331358909607, + 0.9782190918922424 + ], + [ + 0.2940305471420288, + 0.7656340599060059, + 0.6358770728111267, + 0.7213700413703918, + 0.37468573451042175, + 0.7162275910377502, + 0.5762915015220642 + ] + ], + [ + [ + 0.8711037635803223, + 0.28307732939720154, + 0.08255741745233536, + 0.3258964419364929, + 0.747075080871582, + 0.514129638671875, + 0.5337597131729126 + ], + [ + 0.15029586851596832, + 0.15541334450244904, + 0.15199877321720123, + 0.4499010145664215, + 0.5354976058006287, + 0.943956196308136, + 0.31214824318885803 + ], + [ + 0.10161618143320084, + 0.45836737751960754, + 0.5319298505783081, + 0.5951228141784668, + 0.8761271238327026, + 0.4325665831565857, + 0.04830113798379898 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/test.json b/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/test.json new file mode 100644 index 000000000..226c21592 --- /dev/null +++ b/operators/data_layout/slice/slice_ERRORIF_WrongOutputType_10x3x7_f32_perm5/test.json @@ -0,0 +1,68 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "SLICE", + attribute_type: "SliceAttribute", + attribute: { + start: [ + 7, + 0, + 0 + ], + size: [ + 1, + 1, + 6 + ] + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 3, + 7 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 1, + 1, + 6 + ], + type: "INT16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |