diff options
Diffstat (limited to 'operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48')
3 files changed, 307 insertions, 0 deletions
diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/desc.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/desc.json new file mode 100644 index 000000000..992afc22b --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/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": "Input data type not supported for this operator", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/input-0.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/input-0.json new file mode 100644 index 000000000..80feb34aa --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/input-0.json @@ -0,0 +1,141 @@ +{ + "type": "int64", + "data": [ + [ + [ + 18513144142290, + 56858559223543, + 41643795581962, + 42906091034191 + ], + [ + -51731117335076, + 80904977989388, + 13832914229179, + -19304061914516 + ], + [ + 35469360138136, + -39221473540416, + 3585778578998, + 66626728152812 + ], + [ + 108762743541485, + 118517064802518, + 1022577531304, + 5706937449407 + ], + [ + 84406016885965, + -52227487219980, + 94964692583664, + -1648979910072 + ], + [ + -108126719571286, + -120454641611182, + 96262531112535, + -125096510238105 + ], + [ + -61752390904864, + -46688242986825, + -92043880923952, + -52384359400684 + ], + [ + 68311884566792, + -136604635306211, + 92091132047305, + 100359346631879 + ], + [ + -35955170710965, + -97499301169780, + 28384051477834, + -107052658480353 + ], + [ + -38021819694560, + 129036343017586, + 139460850881436, + 76590717956887 + ], + [ + -53209604592470, + 52823015343430, + 57816751940832, + -31569756241719 + ] + ], + [ + [ + 39656625138935, + -137717924735640, + -81892988769078, + 7061729493419 + ], + [ + -94645593802885, + -94038856583643, + 94661242350321, + 137678700538781 + ], + [ + 15753993450816, + 95439644603218, + 138013279046967, + -100881788918108 + ], + [ + -14567564803906, + -30238092306485, + -118205618105314, + 71869054440928 + ], + [ + -18639546742131, + -8633700484402, + -98326816560321, + -89811163132308 + ], + [ + 114589482565244, + -128169887076141, + -75195396873776, + -58530095156917 + ], + [ + -2759146524221, + 24332153061088, + -1888703891162, + -117061126519921 + ], + [ + -72151197399852, + 96711532599088, + 38727776262823, + 41981725412961 + ], + [ + 47907957336100, + 74000621161312, + -124381404816093, + -37546401744490 + ], + [ + 11125983919712, + -45470457601643, + 96962182835823, + -4905402739517 + ], + [ + 75611944486918, + 99083559415916, + 1348682538671, + 115278708305485 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/test.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/test.json new file mode 100644 index 000000000..bb3eb1239 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputType_2x11x4_i48/test.json @@ -0,0 +1,144 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "GATHER", + attribute_type: "NONE", + inputs: [ + "input-0", + "const-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4 + ], + type: "INT48" + }, + { + name: "const-1", + shape: [ + 2, + 9 + ], + type: "INT32", + data: [ + 3, + 0, + 0, + 0, + 6, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 9, + 0, + 0, + 0, + 4, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 6, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 9, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 5, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 4, + 0, + 0, + 0, + 10, + 0, + 0, + 0, + 10, + 0, + 0, + 0, + 6, + 0, + 0, + 0, + 6, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 2, + 9, + 4 + ], + type: "INT48" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |