目录

GetOriginFormat

Function Description

Obtains the original format.

Function Prototype

ge::Format GetOriginFormat() const

Parameters

None

Return Value

Original format.

Restrictions

None

Calling Example

ExpandDimsType dim_type("1100");
StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type);
auto origin_format = format.GetOriginFormat(); // Format::FORMAT_NCHW