目录

SetDataType

Function Description

Sets the data type of a tensor.

Function Prototype

graphStatus SetDataType(const ge::DataType &dtype);

Parameters

Parameter Input/Output Description
dtype Input

Data type value to be set.

For details about the data type, see DataType.

Return Value

Type Description
graphStatus Returns GRAPH_SUCCESS upon success. Otherwise, GRAPH_FAILED is returned.

Exception Handling

None

Restrictions

None