目录

SetOriginFormat

Function Description

Sets the original format.

Function Prototype

void SetOriginFormat(const ge::Format origin_format)

Parameters

Parameter Input/Output Description
origin_format Input Original format.

Return Value

None

Restrictions

None

Calling Example

ExpandDimsType dim_type("1100");
StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type);
format.SetOriginFormat(ge::Format::FORMAT_NC);