GetDataType
Function Usage
Obtains the data type of an aclTensor.
Prototype
op::DataType GetDataType()
Parameters
None
Returns
op::DataType (that is, ge::DataType), which indicates the data type of elements in aclTensor, such as float16 or float32.
Constraints
None
Example
1 2 3 4 |
// Obtain the data type of the input. void Func(const aclTensor *input) { op::DataType dataType = input->GetDataType(); } |
Parent topic: common_types