构造函数。
explicit InferRequest(InferRequestId requestId);
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
requestId |
是 |
请求ID。 |
InferRequestId类型,请参考InferRequestId。 |
构造一个ID为0的InferRequestId对象。
1 2 | mindie_llm::InferRequestId runtimeReqId(0); std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId); |
InferRequest对象。