aclGetDataType
Function Usage
Obtains the data type of the aclTensor.
Prototype
aclnnStatus aclGetDataType(const aclTensor *tensor, aclDataType *dataType)
Parameter Description
The definition of aclDataType is provided by AscendCL. For details, see aclDataType.
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Source tensor. The aclTensor must be created by calling the aclCreateTensor API in advance. |
dataType |
Output |
Returned data type of the aclTensor. |
Returns
0 on success; else, failure.
Parent topic: Basic APIs