aclfvSet1NTopNum

Applicable Products

Product

Supported

Ascend 950PR&950DT products

×

Atlas A3 products

×

Atlas A2 products

×

Atlas 200I/500 A2 inference products

×

Atlas inference products

√

Atlas training products

×

Description

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

Atlas inference accelerator modules do not support this API.

Prototype

1
aclError aclfvSet1NTopNum(aclfvInitPara *initPara, uint32_t maxTopNumFor1N)

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.

maxTopNumFor1N

Input

Maximum number of results (topK) to return in 1:N mode, which must be in the range of [2, 4800].

Return Value

0 on success; else, failure. For details, see aclError.