MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / float_array_to_float8e5m2

Function float_array_to_float8e5m2

src/test.cpp:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62std::vector<f8e5m2_t> float_array_to_float8e5m2(const std::vector<float>& data) {
63 std::vector<f8e5m2_t> float8e5m2_data(data.size());
64 for (size_t i = 0; i < data.size(); i++) {
65 float8e5m2_data[i] = float_to_float8e5m2(data[i]);
66 }
67 return float8e5m2_data;
68}
69
70void test_attn() {
71 constexpr int TEST_SEQ_LEN = 4;

Callers 1

test_matmulFunction · 0.85

Calls 1

float_to_float8e5m2Function · 0.85

Tested by

no test coverage detected