| 155 | } // anonymous namespace |
| 156 | |
| 157 | bool OprAttr::is_same_st(const Hashable& rhs_) const { |
| 158 | auto&& rhs = static_cast<const OprAttr&>(rhs_); |
| 159 | return type == rhs.type && param == rhs.param && |
| 160 | policy.strategy == rhs.policy.strategy && |
| 161 | policy.workspace_limit == rhs.policy.workspace_limit && |
| 162 | config.comp_node() == rhs.config.comp_node() && |
| 163 | config.output_dtype() == rhs.config.output_dtype(); |
| 164 | } |
| 165 | |
| 166 | size_t OprAttr::hash() const { |
| 167 | return hash_pair_combine( |
no test coverage detected