SetOriginFormat

Description

Sets the original format of a tensor.

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

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.

Returns

graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.

Exception Handling

None.

Restrictions

None.