aclfvSet1NTopNum

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Sets the maximum number of results (topK) returned in the 1:N search mode. If it is not set, top 4800 results are returned by default.

Prototype

aclError aclfvSet1NTopNum(aclfvInitPara *initPara, uint32_t maxTopNumFor1N)

Parameters

Parameter

Input/Output

Description

initPara

Input/Output

Pointer to the initialization parameter for feature vector search.

Call aclfvCreateInitPara to create data of the aclfvInitPara type in advance.

maxTopNumFor1N

Input

Maximum number of results (topK) returned in the 1:N search mode. Must be in the range of [2, 4800].

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.