Function: create_init_para

Description

Creates data of the aclfvInitPara type as an initialization configuration for feature vector search.

To destroy data of the aclfvInitPara type, call Function: destroy_init_para.

The Atlas inference accelerator module of the Atlas inference product does not support this API.

Prototype

  • C Prototype
    1
    aclfvInitPara *aclfvCreateInitPara(uint64_t fsNum)
    
  • Python Function
    1
    init_para = acl.fv.create_init_para(fs_num)
    

Parameters

Parameter

Description

fs_num

Int, number of features in the repository, which is used to allocate memory for the feature search module. The value range is [1,500000000].

Return Value

Return Value

Description

init_para

int.

  • Success: data of the aclfvInitPara type.
  • Failure: 0.

Reference

For details about the API call sequence and sample code, see Feature Vector Search.