Function: allocator_destroy_desc

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

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

√

Description

Destroys data of the aclrtAllocatorDesc type created by the acl.rt.allocator_create_desc call.

Prototype

  • C Prototype
    1
    aclError aclrtAllocatorDestroyDesc(aclrtAllocatorDesc alloctorDesc)
    
  • Python Function
    1
    ret = acl.rt.allocator_destroy_desc(alloctorDesc)
    

Parameters

Parameter

Description

allocatorDesc

Int, aclrtAllocatorDesc data to be destroyed.

Return Values

Return Value

Description

ret

Int, 0 on success; else, failure.