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

Function row_bytes

engine/src/quant/types.cpp:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58size_t row_bytes(int type, int64_t n) noexcept {
59 const TypeInfo* t = type_info(type);
60 if (t == nullptr || n < 0 || n % t->blck != 0) return 0;
61 return (size_t) (n / t->blck) * t->bytes;
62}
63
64} // namespace strata::quant

Callers 5

gguf_dot_forFunction · 0.50
gather_rowsMethod · 0.50
row_size_ofFunction · 0.50

Calls 1

type_infoFunction · 0.70

Tested by

no test coverage detected