Function: destroy_desc

Applicable Products

  • Ascend 950PR&950DT products: Supported
  • Atlas A3 products: Supported
  • Atlas A2 products: Supported
  • Atlas 200I/500 A2 inference products: Supported
  • Atlas inference products: Supported
  • Atlas training products: Supported

Function

Destroys data of the aclmdlDesc type created by the acl.mdl.create_desc call.

Prototype

  • C Prototype

    aclError aclmdlDestroyDesc(aclmdlDesc *modelDesc)
    
  • Python Function

    ret = acl.mdl.destroy_desc(model_desc)
    

Parameters

Parameter Description
model_desc Int, pointer address of the aclmdlDesc to be destroyed.

Return Values

Return Value Description
ret Int, error code.
0: success
Other values: failure