diff options
Diffstat (limited to 'operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16')
3 files changed, 214 insertions, 0 deletions
diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/desc.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/desc.json new file mode 100644 index 000000000..b4526f1cb --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/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": "Op input list does not match expected input", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/input-0.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/input-0.json new file mode 100644 index 000000000..10563a8f3 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/input-0.json @@ -0,0 +1,101 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.91015625, + 0.2119140625, + 0.46875, + 0.73046875, + 0.875, + 0.37890625, + 0.515625, + 0.73828125, + 0.73046875 + ], + [ + 0.78125, + 0.56640625, + 0.1044921875, + 0.90234375, + 0.86328125, + 0.796875, + 0.099609375, + 0.2041015625, + 0.7421875 + ] + ], + [ + [ + 0.0230712890625, + 0.9765625, + 0.376953125, + 0.71875, + 0.88671875, + 0.39453125, + 0.318359375, + 0.60546875, + 0.578125 + ], + [ + 0.408203125, + 0.6015625, + 0.93359375, + 0.466796875, + 0.1962890625, + 0.376953125, + 0.392578125, + 0.130859375, + 0.162109375 + ] + ], + [ + [ + 0.68359375, + 0.337890625, + 0.953125, + 0.2431640625, + 0.0986328125, + 0.75, + 0.87890625, + 0.27734375, + 0.201171875 + ], + [ + 0.185546875, + 0.51953125, + 0.466796875, + 0.2578125, + 0.045166015625, + 0.48046875, + 0.95703125, + 0.65234375, + 0.494140625 + ] + ], + [ + [ + 0.1103515625, + 0.251953125, + 0.29296875, + 0.76171875, + 0.875, + 0.8984375, + 0.984375, + 0.98046875, + 0.94921875 + ], + [ + 0.07177734375, + 0.1376953125, + 0.302734375, + 0.55078125, + 0.0966796875, + 0.84375, + 0.61328125, + 0.5390625, + 0.1650390625 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/test.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/test.json new file mode 100644 index 000000000..09a8b4b97 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongInputList_4x2x9_bf16/test.json @@ -0,0 +1,92 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "GATHER", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 4, + 2, + 9 + ], + type: "BF16" + }, + { + name: "const-1", + shape: [ + 4, + 1 + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 4, + 1, + 9 + ], + type: "BF16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |