获取最大输出长度。
uint32_t GetMaxOutputLen() const
无。
构造一个请求对象,获取一个请求对象的最大输出长度。
1 2 3 4 5 | mindie_llm::InferRequestId runtimeReqId(0); std::shared_ptr<mindie_llm::InferRequest> runtimeRequest(runtimeReqId); uint32_t maxOutputLen = 1; Status ret = runtimeRequest->SetMaxOutputLen(maxOutputLen); uint32_t maxOutputLen1 = runtimeRequest->GetMaxOutputLen(); |
请求对象的最大输出长度,类型为uint32_t。