diff options
Diffstat (limited to 'operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16')
3 files changed, 176 insertions, 0 deletions
diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/desc.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/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/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/input-0.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/input-0.json new file mode 100644 index 000000000..f03df9379 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/input-0.json @@ -0,0 +1,62 @@ +{ + "type": "float16", + "data": [ + [ + [ + 0.486572265625, + 0.49072265625, + 0.93798828125, + 0.57177734375, + 0.473388671875, + 0.26708984375, + 0.33154296875, + 0.5205078125, + 0.43896484375 + ], + [ + 0.0216064453125, + 0.826171875, + 0.89599609375, + 0.1402587890625, + 0.55419921875, + 0.10858154296875, + 0.67236328125, + 0.28125, + 0.6591796875 + ], + [ + 0.72705078125, + 0.7685546875, + 0.10772705078125, + 0.916015625, + 0.230224609375, + 0.03741455078125, + 0.5546875, + 0.370849609375, + 0.82958984375 + ], + [ + 0.80810546875, + 0.317138671875, + 0.953125, + 0.291015625, + 0.51513671875, + 0.255859375, + 0.93603515625, + 0.16455078125, + 0.044921875 + ], + [ + 0.43505859375, + 0.9921875, + 0.8916015625, + 0.74853515625, + 0.890625, + 0.8935546875, + 0.51904296875, + 0.31591796875, + 0.77197265625 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/test.json b/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/test.json new file mode 100644 index 000000000..d2dd4c746 --- /dev/null +++ b/operators/scatter_gather/gather/gather_ERRORIF_WrongOutputType_1x5x9_f16/test.json @@ -0,0 +1,93 @@ +{ + 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", + "const-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 5, + 9 + ], + type: "FP16" + }, + { + name: "const-1", + shape: [ + 1, + 4 + ], + type: "INT32", + data: [ + 3, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 4, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 1, + 4, + 9 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |