目录

operator!=

Function Description

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

Function Prototype

bool operator!=(const Shape &rht) const

Parameters

Parameter Input/Output Description
rht Input Another shape object.

Return Value

true: not equal

false: equal

Restrictions

None

Calling 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.