Function: create_init_para

Applicability

Product

Supported (√/x)

Atlas A3 training products / Atlas A3 inference products

x

Atlas A2 training products / Atlas A2 inference products

x

Atlas training products

x

Atlas inference products

Atlas 200I/500 A2 inference products

x

Function Usage

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 modules in the Atlas inference products 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)
    

Parameter Description

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 Description

Return Value

Description

init_para

Int.

  • Success: data of the aclfvInitPara type.
  • If 0 is returned, the operation fails.

Reference

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