aclfvSetNMTopNum

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

X

Atlas A3 training products/Atlas A3 inference products

X

Atlas A2 training products/Atlas A2 inference products

X

Atlas 200I/500 A2 inference products

X

Atlas inference products

√

Atlas training products

X

Function

Sets the maximum number of results (topK) returned in N:M mode. If it is not set, top 500 results are returned by default.

Atlas inference accelerator module: This API is not supported.

Prototype

1
aclError aclfvSetNMTopNum(aclfvInitPara *initPara, uint32_t maxTopNumForNM)

Parameters

Parameter

Input/Output

Description

initPara

Input and Output

Pointer to the initialization parameters for feature vector search.

Call aclfvCreateInitPara 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.