MCPcopy Create free account
hub / github.com/Niko1221/Strata / bf16_of

Function bf16_of

engine/src/split/tools/convert_parallel_test.cpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return (uint32_t) (rng_state >> 11);
39}
40uint16_t bf16_of(float f) {
41 uint32_t u;
42 std::memcpy(&u, &f, 4);
43 return (uint16_t) (u >> 16);
44}
45
46Spec bf16_matrix(const std::string& name, uint64_t cols, uint64_t rows) {
47 Spec s{name, fnx::T_BF16, {cols, rows}, {}};

Callers 2

bf16_matrixFunction · 0.70
load_mtp_cardFunction · 0.50

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected