aclfvInit

Description

Initializes the feature search module. This API is synchronous.

Used in pair with aclfvRelease.

The Ascend 310 AI Processor does not support this API.

The Ascend 910 AI Processor does not support this API.

The Ascend 310P1 AI Processor does not support this API.

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

0 on success; else, failure.