SetRecompute
Function
Sets whether the request is of a recomputation type.
Format
void SetRecompute(bool isRecompute);
Parameters
Parameter |
Mandatory/Optional |
Description |
Value |
|---|---|---|---|
isRecompute |
Mandatory |
Whether the request is a recomputation request. |
Bool type |
Usage Example
Construct a request object, set the recomputation type for the request object, and check whether the request is a recomputation request.
1 2 3 4 | mindie_llm::InferRequestId runtimeReqId(0); std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId); runtimeRequest->SetRecompute(true); bool isRecompute = runtimeRequest->IsRecompute(); |
Return Value
None
Parent topic: InferRequest