operator==
Function Usage
Checks whether a stride object is equal to another stride object. If the two stride objects have the same number of dimensions and the stride values of each dimension are the same, the two stride objects are considered equal.
Prototype
1 | bool operator==(const Stride &rht) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
rht |
Input |
Another stride object. |
Returns
true: equal; false: not equal
Constraints
None
Examples
1 2 3 | Stride stride0({3, 256, 256}); Stride stride1({1, 3, 256, 256}); auto is_same_shape = stride0 == stride1; // false is returned, indicating that they are not equal. |
Parent topic: Stride