GetMaxOutputLen

Function

Obtains the maximum output length.

Format

uint32_t GetMaxOutputLen() const

Parameters

None

Usage Example

Construct a request object and obtain the maximum output length of the request object.

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();

Return Value

Maximum output length of the request object. The type is uint32_t.