函数:allocator_unregister
C函数原型 |
aclError aclrtAllocatorUnregister(aclrtStream stream) |
---|---|
Python函数 |
ret = acl.rt.allocator_unregister(stream) |
函数功能 |
取消注册用户提供的Allocator以及Allocator对应的回调函数,用于取消使用用户提供的Allocator。 |
输入说明 |
stream:该Allocator对应的stream。 |
返回值说明 |
返回0表示成功,返回其他值表示失败。 |
约束说明 |
|
返回值说明 |
返回0表示成功,返回其他值表示失败。 |
参考资源 |
父主题: 内存管理