Function: allocator_create_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

Creates data of the aclrtAllocatorDesc type as an allocator description, which is mainly used to register callback functions.

Prototype

  • C Prototype
    1
    aclrtAllocatorDesc aclrtAllocatorCreateDesc()
    
  • Python Function
    1
    desc = acl.rt.allocator_create_desc()
    

Parameters

None

Return Values

Return Value

Description

desc

Int.

  • If a pointer address of the aclrtAllocatorDesc type is returned, the operation is successful.
  • NULL: failure