MutableExpandDimsType
Function Usage
Obtains the writable dimension expansion rule.
Prototype
1 | ExpandDimsType &MutableExpandDimsType() |
Parameters
None
Returns
Dimension expansion rule reference
Constraints
None
Examples
1 2 3 4 5 | ExpandDimsType dim_type("1100"); StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type); ExpandDimsType new_dim_type("1010"); format.SetExpandDimsType(new_dim_type); auto &fmt_dim_type = format.MutableExpandDimsType(); |
Parent topic: StorageFormat