Function: allocator_create_desc

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

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()
    

Parameter Description

None.

Return Value Description

Return Value

Description

desc

Int.

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