| 16 | constexpr int width = 8, hidden = 512; |
| 17 | size_t checked = 0; |
| 18 | bool equal(const std::vector<float> &actual, const std::vector<float> &expected) { |
| 19 | for (size_t i = 0; i < actual.size(); ++i) { |
| 20 | ++checked; |
| 21 | if (!std::isfinite(actual[i]) || std::memcmp(&actual[i], &expected[i], sizeof(float))) |
| 22 | return false; |
| 23 | } |
| 24 | return true; |
| 25 | } |
| 26 | |
| 27 | bool check_format(int gu, int down, int ff, bool folded = false) { |
| 28 | cpu::NativeFmt fmt; |