下载
中文
注册

operator!=

函数功能

判断格式是否不相等

函数原型

bool operator!=(const StorageFormat &other) const

参数说明

参数

输入/输出

说明

other

输入

另一种格式

返回值说明

true表示格式不同。

约束说明

无。

调用示例

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