operator!=
Function Usage
Determines whether formats are different.
Prototype
1 | bool operator!=(const StorageFormat &other) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
other |
Input |
Another format |
Returns
The value true indicates that the formats are different, and the value false indicates that the formats are the same.
Constraints
None
Examples
1 2 3 4 | ExpandDimsType dim_type("1100"); StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type); StorageFormat another_format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_NC, dim_type); bool is_diff_fmt = format != another_format; // true |
Parent topic: StorageFormat