GetOriginFormat

Function Usage

Obtains the original format.

Prototype

1
ge::Format GetOriginFormat() const

Parameters

None

Returns

Original format

Constraints

None

Examples

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