aclfvSet1NTopNum

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

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.

Atlas inference accelerator module does not support this API.

Prototype

1
aclError aclfvSet1NTopNum(aclfvInitPara *initPara, uint32_t maxTopNumFor1N)

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.

maxTopNumFor1N

Input

Maximum number of results (topK) returned in the 1:N search mode. Must be in the range of [2, 4800].

Returns

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