aclGetDataType
Function Usage
Obtains the data type of the aclTensor.
Prototype
aclnnStatus aclGetDataType(const aclTensor *tensor, aclDataType *dataType)
Parameters
|
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