operator!=

Function Usage

Determines whether shapes are different.

Prototype

1
bool operator!=(const StorageShape &other) const

Parameters

Parameter

Input/Output

Description

other

Input

Another shape

Returns

true: not equal; false: equal

Constraints

None

Examples

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