SetOriginFormat
Description
Sets the original format.
Prototype
void SetOriginFormat(const ge::Format origin_format)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
origin_format |
Input |
Original format |
Returns
None
Restrictions
None
Example
ExpandDimsType dim_type("1100");
StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type);
format.SetOriginFormat(ge::Format::FORMAT_NC);
Parent topic: StorageFormat