目录

SetOriginFormat

Function Description

Sets the original format of a tensor.

The original format refers to that of the original network model.

Function Prototype

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

Parameters

Parameter Input/Output Description
format Input

Original 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