aclfvSetNMTopNum
Applicable Products
Product |
Supported |
|---|---|
× |
|
× |
|
× |
|
× |
|
√ |
|
× |
Description
Sets the maximum number of results (topK) to return in N:M mode. If it is not set, top 500 results are returned by default.
Prototype
1 | aclError aclfvSetNMTopNum(aclfvInitPara *initPara, uint32_t maxTopNumForNM) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
initPara |
Input and Output |
Pointer to the initialization parameters for feature vector search. The aclfvCreateInitPara API must be called to create data of the aclfvInitPara type before this API is called. |
maxTopNumForNM |
Input |
Maximum number of results (topK) to return in N:M mode, which must be in the range of [500, 4800]. |
Return Value
0 on success; else, failure. For details, see aclError.