IsDecodeReq

Function

Checks whether a request is of the decode type.

Format

bool IsDecodeReq() 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_STAND_INFER);
bool isDecode = runtimeRequest->IsDecodeReq();

Return Value

Bool type.