文档
注册

aclSetTensorPlaceMent

函数功能

设置TensorDesc的placement属性,用于标识存放Tensor数据的内存类型。

函数原型

aclError aclSetTensorPlaceMent(aclTensorDesc *desc, aclMemType memType)

参数说明

参数名

输入/输出

说明

desc

输出

aclTensorDesc类型的指针。

需提前调用aclCreateTensorDesc接口创建aclTensorDesc类型。

memType

输入

指定placement属性值。

返回值说明

返回0表示成功,返回其它值表示失败。

搜索结果
找到“0”个结果

当前产品无相关内容

未找到相关内容,请尝试其他搜索词