函数:trans_tensor_desc_format
产品支持情况
产品  | 
是否支持  | 
|---|---|
√  | 
|
√  | 
|
√  | 
|
√  | 
|
√  | 
|
√  | 
使用说明
C函数原型  | 
aclError aclTransTensorDescFormat(const aclTensorDesc *srcDesc, aclFormat dstFormat, aclTensorDesc **dstDesc)  | 
|---|---|
Python函数  | 
dstDesc, ret = acl.trans_tensor_desc_format(srcDesc, dstFormat)  | 
函数功能  | 
根据指定的“dstFormat”转换“srcDesc”(输入源aclTensorDesc中)的Format,生成新的目标aclTensorDesc,源aclTensorDesc中的Format保持不变。当前版本不支持该接口,预留接口。  | 
输入说明  | 
srcDesc:int,输入源aclTensorDesc数据的指针地址。需提前调用函数:create_tensor_desc接口创建aclTensorDesc类型。 dstFormat:int,需要设置的目标Format,具体请参见aclFormat。  | 
返回值说明  | 
dstDesc:int,输出aclTensorDesc的指针地址。需提前调用函数:create_tensor_desc接口创建aclTensorDesc类型。 ret:int,错误码。 
  | 
约束说明  | 
无  | 
父主题: aclmdlTensorDesc