operator!=

函数功能

判断shape是否不相等

函数原型

bool operator!=(const StorageShape &other) const

参数说明

参数

输入/输出

说明

other

输入

另一种shape

返回值说明

无。

约束说明

无。

调用示例

StorageShape shape0({3, 256, 256}, {256, 256, 3});
StorageShape shape1({3, 256, 256}, {3, 256, 256});
bool is_diff_shape = shape0 != shape1; // true