StorageFormat Constructor
Description
Constructs a format, including the original format, storage format, and dimension expansion rule.
Prototype
StorageFormat()
StorageFormat(const ge::Format origin_format, const ge::Format storage_format, const ExpandDimsType &expand_dims_type)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
origin_format |
Input |
Original format |
storage_format |
Input |
Storage format |
expand_dims_type |
Input |
Dimension expansion rule |
Returns
A StorageFormat object with origin_format, storage_format, and expand_dims_type specified
Restrictions
None
Example
ExpandDimsType dim_type("1100");
StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type);
Parent topic: StorageFormat