aclfvInit

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

Initializes the feature search module.

Used in pair with aclfvRelease.

Restrictions

aclfvInit can be called only once per process.

Prototype

aclError aclfvInit(aclfvInitPara *initPara)

Parameters

Parameter

Input/Output

Description

initPara

Input

Pointer to the initialization parameter for feature vector search.

  • Call aclfvCreateInitPara to create data of the aclfvInitPara type in advance.
  • In 1:N mode, call aclfvSet1NTopNum to set the maximum number of results (topK) to return. If it is not set, top 4800 results are returned by default.
  • In N:M mode, call aclfvSetNMTopNum to set the maximum number of results (topK) to return. If it is not set, top 500 results are returned by default.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.