operator!=
Function Usage
Determines whether a shape object is different from another shape object.
Prototype
1 | bool operator!=(const Shape &rht) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
rht |
Input |
Another shape object. |
Returns
true: not equal; false: equal
Constraints
None
Examples
1 2 3 | 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. |
Parent topic: Shape