RequestId接口

接口功能

接口格式

explicit RequestId(const std::string &requestLabel);
explicit RequestId(uint64_t requestIndex);

接口参数

参数

是否必选

说明

取值要求

requestLabel

必选

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

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

参数

是否必选

说明

取值要求

requestIndex

必选

推理请求对象的唯一序列号,uint64类型的。

合法的uint64唯一序列号。

使用样例

通过字符串和整型,初始化请求ID类。

1
2
3
4
std::string requestLabel = "123";
uint64_t requestIndex = 456;
RequestId requestId1(requestLabel);
RequestId requestId2(requestIndex);

返回值

RequestId对象。