operator==
Function Usage
Determines whether shapes are the same.
Prototype
1 | bool operator==(const StorageShape &other) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
other |
Input |
Another shape |
Returns
true: equal; false: not equal
Constraints
None
Examples
1 2 3 | StorageShape shape0({3, 256, 256}, {256, 256, 3}); StorageShape shape1({3, 256, 256}, {3, 256, 256}); bool is_same_shape = shape0 == shape1; // false |
Parent topic: StorageShape