explicit InferRequestId(); explicit InferRequestId(const std::string requestLabel); explicit InferRequestId(uint64_t requestIndex);
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
requestLabel |
必选 |
推理请求对象的唯一性标识,string类型的序列号。 |
合法的string类型请求序列号。 |
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
requestIndex |
必选 |
推理请求对象的唯一序列号,uint64类型的。 |
合法的uint64唯一序列号。 |
调用不同构造函数,分别构造InferRequestId对象。
1 2 3 | mindie_llm::InferRequestId1 runtimeReqId(); mindie_llm::InferRequestId2 runtimeReqId("Req"); mindie_llm::InferRequestId3 runtimeReqId(0); |
InferRequestId对象。