IsFlexLocalReq

Function

Check whether the request is processed locally by the Flex node.

Format

bool IsFlexLocalReq() const;

Parameters

None

Usage Example

Construct a request object, set the request type for the request object, and finally check whether the request is a decode request.

1
2
3
4
mindie_llm::InferRequestId runtimeReqId(0);
std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId);
runtimeRequest->SetReqType(mindie_llm::InferReqType::REQ_FLEX_LOCAL);
bool isDecode = runtimeRequest->IsFlexLocalReq();

Return Value

Bool type.