IsRecompute
Function
Checks whether a request is of a recomputation type.
Format
bool IsRecompute() const;
Parameters
None
Usage Example
Construct a request object, set the recomputation type for the request object, and finally 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
Bool type.
Parent topic: InferRequest