aclfvSetNMTopNum
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
☓ |
|
√ |
|
☓ |
Function
Sets the maximum number of results (topK) returned in the N:M search 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/Output |
Pointer to the initialization parameter for feature vector search. Call the aclfvCreateInitPara API to create data of the aclfvInitPara type in advance. |
maxTopNumForNM |
Input |
Maximum number of results (topK) returned in N:M mode. Must be in the range of [500, 4800]. |
Returns
0 on success; otherwise, failure. For details, see aclError.