Function: destroy_dataset

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Destroys data of the aclmdlDataset type created by the acl.mdl.create_dataset call.

Prototype

  • C Prototype
    1
    aclError aclmdlDestroyDataset(const aclmdlDataset *dataset)
    
  • Python Function
    1
    ret = acl.mdl.destroy_dataset(dataset)
    

Parameter Description

Parameter

Description

dataset

Int, pointer address of the aclmdlDataset to be destroyed.

Return Value Description

Return Value

Description

ret

Int, error code.

Restrictions

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.