InferRequestId(request_label)接口

接口功能

构造函数,根据序列request_label值作为唯一序列号的创建请求体对象。

C++函数原型

explicit InferRequestId(const std::string requestLabel);

Python函数

InferRequestId(request_label)

接口参数

参数

是否必选

说明

取值要求

request_label

非必选

推理请求对象的唯一性标识,序列号。

合法的string类型请求序列号。

使用样例

构造函数,通过字符串ID,构造请求对象。

1
2
id = '123'
request_id = llm_manager_python.InferRequestId(id)