Constructor
Function Usage
Constructs a format, including the original format, storage format, and dimension expansion rule.
Prototype
1 2 | 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
Constraints
None
Examples
1 2 | ExpandDimsType dim_type("1100"); StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type); |
Parent topic: StorageFormat