判断请求是否是重计算请求。
bool IsRecompute() const;
无。
构造一个请求对象后,为该请求对象设置重计算类型,然后获取该请求是否为重计算请求。
1 2 3 4 | mindie_llm::InferRequestId runtimeReqId(0); std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId); runtimeRequest->SetRecompute(true); bool isRecompute = runtimeRequest->IsRecompute(); |
bool值。