Function: destroy_dataset

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 aclmdlDataset type created by the acl.mdl.create_dataset call.

Prototype

  • C Prototype

    aclError aclmdlDestroyDataset(const aclmdlDataset *dataset)
    
  • Python Function

    ret = acl.mdl.destroy_dataset(dataset)
    

Parameters

Parameter Description
dataset Int, pointer address of the aclmdlDataset to be destroyed.

Return Values

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

Constraints

Destruction API: The released or destroyed resources are no longer available after this API is called. You are advised to set the released or destroyed resources to invalid values (for example, 0 or None) after calling this API.