SetDataType
Function Usage
Sets the data type of a tensor.
Prototype
1 | graphStatus SetDataType(const ge::DataType &dtype) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dtype |
Input |
Data type value to be set. For details about data types, see DataType. |
Returns
graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.
Exception Handling
None
Constraints
None
Parent topic: Tensor