| 1089 | struct Float16Vector { |
| 1090 | std::vector<float16_t> values; |
| 1091 | bool operator==(const Float16Vector &o) const { |
| 1092 | if (values.size() != o.values.size()) |
| 1093 | return false; |
| 1094 | for (size_t i = 0; i < values.size(); ++i) { |
| 1095 | if (values[i].to_bits() != o.values[i].to_bits()) |
| 1096 | return false; |
| 1097 | } |
| 1098 | return true; |
| 1099 | } |
| 1100 | FORY_STRUCT(Float16Vector, values); |
| 1101 | }; |
| 1102 |