| 1103 | struct Float16Map { |
| 1104 | std::map<std::string, float16_t> named_values; |
| 1105 | bool operator==(const Float16Map &o) const { |
| 1106 | if (named_values.size() != o.named_values.size()) |
| 1107 | return false; |
| 1108 | for (const auto &kv : named_values) { |
| 1109 | auto it = o.named_values.find(kv.first); |
| 1110 | if (it == o.named_values.end()) |
| 1111 | return false; |
| 1112 | if (kv.second.to_bits() != it->second.to_bits()) |
| 1113 | return false; |
| 1114 | } |
| 1115 | return true; |
| 1116 | } |
| 1117 | FORY_STRUCT(Float16Map, named_values); |
| 1118 | }; |
| 1119 |