SetOriginFormat

Function Usage

Sets the original format.

Prototype

1
void SetOriginFormat(const ge::Format origin_format)

Parameters

Parameter

Input/Output

Description

origin_format

Input

Original format.

Returns

None

Constraints

None

Examples

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