InferRequestId &operator = (const uint64_t rhs); InferRequestId &operator = (const std::string &rhs); InferRequestId &operator = (const InferRequestId &rhs);
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
rhs |
必选 |
请求体序列号,唯一标识请求体。 |
合法的uint64_t数值。 |
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
rhs |
必选 |
请求体序列号,唯一标识请求体。 |
合法的string类型。 |
参数 |
是否必选 |
说明 |
取值要求 |
---|---|---|---|
rhs |
必选 |
推理请求体对象。 |
合法的请求InferRequestId对象。 |
构造一个请求ID对象,分别调用重载运算符“=”。
1 2 3 4 5 | mindie_llm::InferRequestId runtimeReqId1(0); uint64_t reqId = 0; mindie_llm::InferRequestId runtimeReqId2 = reqId ; mindie_llm::InferRequestId runtimeReqId3 = "Req"; mindie_llm::InferRequestId runtimeReqId4 = runtimeReqId1; |
InferRequestId对象。