---
title: Process
description: "接受模型推理输出张量，输出文本生成结果。后续执行时，需要先执行Init()方法。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0920.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0920.html
indexId: 0599b047b846efeff0969587ce9ad77df6d22db1cb890b98170d254ecec3cb4f102
---
# Process

#### 函数功能

接受模型推理输出张量，输出文本生成结果。后续执行时，需要先执行Init()方法。


#### 函数原型

```
virtual APP_ERROR Process(const std::vector<TensorBase>& tensors,
std::vector<TextsInfo>& textsInfos,
const std::map<std::string, std::shared_ptr<void>> &configParamMap = {});
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| tensors | 输入 | 模型后处理的输入张量。 |
| textsInfos | 输出 | 输出文本生成结果。 |
| configParamMap | 输入 | 其他配置参数，可选。 |


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| APP\_ERROR | 程序执行返回的错误码，请参考APP\_ERROR说明。 |
