Function: set_1n_top_num
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
x |
|
|
x |
|
|
x |
|
|
√ |
|
|
x |
Function Usage
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.
The
Prototype
- C Prototype
1aclError aclfvSet1NTopNum(aclfvInitPara *initPara, uint32_t maxTopNumFor1N)
- Python Function
1ret = acl.fv.set_1n_top_num(init_para, max_top_num_for_1n)
Parameter Description
|
Parameter |
Description |
|---|---|
|
init_para |
|
|
max_top_num_for_1n |
Int, maximum number of results (topK) returned in 1:N mode. Must be in the range of [2, 4800]. |
Return Value Description
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code.
|