昇腾社区首页
中文
注册

函数:allocator_create_desc

c函数原型

aclrtAllocatorDesc aclrtAllocatorCreateDesc()

Python函数

desc = acl.rt.allocator_create_desc()

函数功能

创建aclrtAllocatorDesc类型的数据,表示Allocator描述信息,主要用于注册回调函数。

返回值说明

  • 返回aclrtAllocatorDesc类型的指针地址,表示成功。
  • 返回NULL,表示失败。