We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Function Description

Sets the format of a tensor.

Function Prototype

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

Parameters

Expand
Parameter Input/Output Description
format Input

Format value to be set.

For details about the format type, see Format.

Return Value

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

Exception Handling

None

Restrictions

None