operator!=

Description

Determines whether shapes are different.

Prototype

bool operator!=(const StorageShape &other) const

Parameters

Parameter

Input/Output

Description

other

Input

Another shape

Returns

true: not equal; false: equal

Restrictions

None

Example

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