operator==

Description

Determines whether shapes are the same.

Prototype

bool operator==(const StorageShape &other) const

Parameters

Parameter

Input/Output

Description

other

Input

Another shape

Returns

true: equal; false: not equal

Restrictions

None

Example

StorageShape shape0({3, 256, 256}, {256, 256, 3});
StorageShape shape1({3, 256, 256}, {3, 256, 256});
bool is_same_shape = shape0 == shape1; // false