函数:destroy_context
产品支持情况
产品 |
是否支持 |
---|---|
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
销毁一个Context,释放Context的资源。只能销毁通过acl.rt.create_context接口创建的Context。
函数原型
- C函数原型
1
aclError aclrtDestroyContext(aclrtContext context)
- python函数
1
ret = acl.rt.destroy_context(context)
参数说明
参数名 |
说明 |
---|---|
context |
int,指定需要销毁的Context对象指针地址。 |
返回值说明
返回值 |
说明 |
---|---|
ret |
int,错误码,返回0表示成功,返回其它值表示失败。 |
父主题: Context管理