GetRequestId接口

接口功能

获取请求ID。

接口格式

InferRequestId GetRequestId() const

接口参数

无。

使用样例

构造一个请求对象,从请求对象中获取请求ID。

1
2
3
mindie_llm::InferRequestId runtimeReqId(0);
std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId);
mindie_llm::InferRequestId RequestId = runtimeRequest->GetRequestId();

返回值

InferRequestId对象。