Function: init

C Prototype

aclError aclfvInit(aclfvInitPara *initPara)

Python Function

ret = acl.fv.init(init_para)

Function Usage

Initializes the feature search module. Used in pair with acl.fv.release.

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

The Atlas Training Series Product does not support this API.

Input Description

init_para: int, initialization parameter for feature vector search.

  • Call acl.fv.create_init_para to create data of the aclfvInitPara type in advance.
  • In 1:N mode, call acl.fv.set_1n_top_num 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 acl.fv.set_nm_top_num to set the maximum number of results (topK) to return. If it is not set, top 500 results are returned by default.

Return Value

ret: int, error code.

Restrictions

acl.fv.init can be called only once per process.