operator!=

Function Usage

Checks whether a stride object is not equal to another stride object.

Prototype

1
bool operator!=(const Stride &rht) const

Parameters

Parameter

Input/Output

Description

rht

Input

Another stride object.

Returns

true: not equal; false: equal

Constraints

None

Examples

1
2
3
Stride stride0({3, 256, 256});
Stride stride1({1, 3, 256, 256});
auto is_diff_shape = stride0 != stride1; // true is returned, indicating that they are not equal.