ge::graphStatus SetOutputDataType(const size_t index, const ge::DataType datatype);
| Parameter | Input/Output | Description |
|---|---|---|
| index | Input | Output index in the operator IR prototype definition, starting from 0. |
| datatype | Input | Output data type to be set. For details about the data type, see DataType. |
Returns the result status. For details about the status, see ge::graphStatus.
If index is invalid, a failure message is returned.