GetReqType接口
接口功能
获取请求类型。
接口格式
mindie_llm::InferReqType GetReqType() const;
接口参数
无。
使用样例
mindie_llm::InferRequestId runtimeReqId(0); std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId); runtimeRequest->SetReqType(mindie_llm::InferReqType::REQ_STAND_INFER); mindie_llm::InferReqType type = runtimeRequest->GetReqType();
返回值
enum class InferReqType {
REQ_STAND_INFER = 0,
REQ_PREFILL = 1,
REQ_DECODE = 2
};
父主题: InferRequest