SetDataType

Description

Sets the data type of a tensor.

Prototype

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

Restrictions

None