Function: create_init_para

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

x

Atlas A3 products

x

Atlas A2 products

x

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

x

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.

This API is not supported for Atlas inference accelerator modules in Atlas inference products.

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 Values

Return Value

Description

init_para

Int.

  • Data of the aclfvInitPara type: success
  • 0: failure

Reference

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