SetFormat

Description

Sets the format of a tensor.

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.

Returns

graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.

Exception Handling

None.

Restrictions

None.