Function: set_nm_top_num
Applicable Products
Product |
Supported (√/x) |
|---|---|
x |
|
x |
|
x |
|
x |
|
√ |
|
x |
Description
Sets the maximum number of results (topK) returned in N:M mode. If it is not set, top 500 results are returned by default.
This API is not supported for
Prototype
- C Prototype
1aclError aclfvSetNMTopNum(aclfvInitPara *initPara, uint32_t maxTopNumForNM)
- Python Function
1ret = acl.fv.set_nm_top_num(init_para, max_top_num_for_nm)
Parameters
Parameter |
Description |
|---|---|
init_para |
|
max_top_num_for_nm |
Int, maximum number of results (topK) returned in N:M mode. Must be in the range of [500, 4800]. |
Return Values
Return Value |
Description |
|---|---|
ret |
Int, error code.
|
Parent topic: API for feature vector search (Python)