Function: modify

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

Modifies a specified feature in a repository. Only one feature in the repository can be modified at a time. This API does not apply to the N:M mode.

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

Prototype

  • C Prototype
    1
    aclError aclfvModify(aclfvFeatureInfo *featureInfo)
    
  • Python Function
    1
    ret = acl.fv.modify(feature_info)
    

Parameters

Parameter

Description

feature_info

Int, address of the pointer that points to feature description. Call acl.fv.create_feature_info to create data of the aclfvFeatureInfo type in advance.

Return Values

Return Value

Description

ret

Int, error code.

Constraints

  • This API call automatically creates a stream for synchronous task execution within the API. When the tasks are complete, the stream is automatically destroyed.

    Hardware has restrictions on the total number of streams. For details, see Function: create_stream.

Reference

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