operator!=

Description

Determines whether a shape object is different from another shape object.

Prototype

bool operator!=(const Shape &rht) const

Parameters

Parameter

Input/Output

Description

rht

Input

Another shape object.

Returns

true: not equal; false: equal

Restrictions

None

Example

Shape shape0({3, 256, 256});
Shape shape1({1, 3, 256, 256});
auto is_diff_shape = shape0 != shape1; // true is returned, indicating that the two shapes are not equal.