昇腾社区首页
中文
注册

aclGetDataType

Atlas 200/300/500 推理产品不支持该接口。

函数功能

获取aclTensor的DataType。

函数原型

aclnnStatus aclGetDataType(const aclTensor *tensor, aclDataType *dataType)

参数说明

参数名

输入/输出

说明

tensor

输入

输入的tensor。

需提前调用aclCreateTensor接口创建aclTensor。

dataType

输出

返回的aclTensor的数据类型。

返回值说明

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