aclfvCreateInitPara

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

Creates data of the aclfvInitPara type as an initialization configuration for feature vector search. To destroy data of the aclfvInitPara type, call aclfvDestroyInitPara.

Atlas inference accelerator module: This API is not supported.

Prototype

1
aclfvInitPara *aclfvCreateInitPara(uint64_t fsNum)

Parameters

Parameter

Input/Output

Description

fsNum

Input

Number of features in the repository, which is used to allocate memory for the feature search module.

Must be in the range of [1, 500000000].

Returns

  • Success: a pointer to data of the aclfvInitPara type
  • Failure: nullptr