函数:get_tensor_desc_type
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
功能说明
获取Tensor描述中的数据类型。
函数原型
- C函数原型
1
aclDataType aclGetTensorDescType(const aclTensorDesc *desc)
- python函数
1
type = acl.get_tensor_desc_type(desc)
参数说明
参数名 |
说明 |
---|---|
desc |
int,aclTensorDesc类型的指针地址。 需提前调用acl.create_tensor_desc接口创建aclTensorDesc类型。 |
返回值说明
返回值 |
说明 |
---|---|
Type |
int,返回指定Tensor描述的数据类型。 |
父主题: aclmdlTensorDesc