目录

operator==

Function Description

Determines whether formats are the same.

Function Prototype

bool operator==(const StorageFormat &other) const

Parameters

Parameter Input/Output Description
other Input Another format.

Return Value

true: equal

false: not equal.

Restrictions

None

Calling Example

ExpandDimsType dim_type("1100");
StorageFormat format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_C1HWNC0, dim_type);
StorageFormat another_format(ge::Format::FORMAT_NCHW, ge::Format::FORMAT_NC, dim_type);
bool is_same_fmt = format == another_format; // false