aclGetTensorDescType

Description

Obtains the data type specified in a tensor description.

Prototype

aclDataType aclGetTensorDescType(const aclTensorDesc *desc)

Parameters

Parameter

Input/Output

Description

desc

Input

Pointer to data of the aclTensorDesc type.

Call aclCreateTensorDesc to create data of the aclTensorDesc type in advance.

Returns

Tensor data type