目录

SetFormat

Function Description

Sets the format of a tensor.

Function Prototype

graphStatus SetFormat(const ge::Format &format);

Parameters

Parameter Input/Output Description
format Input

Format value to be set.

For details about the format type, see Format.

Return Value

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

Exception Handling

None

Restrictions

None