GetOriginFormat

Description

Obtains the original format.

Prototype

ge::Format GetOriginFormat() const

Parameters

None

Returns

Original format

Restrictions

None

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