MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_nbytes_split

Function ggml_nbytes_split

ggml.c:1979–1983  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1977}
1978
1979size_t ggml_nbytes_split(const struct ggml_tensor * tensor, int nrows_split) {
1980 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
1981
1982 return (nrows_split*tensor->ne[0]*ggml_type_size(tensor->type))/ggml_blck_size(tensor->type);
1983}
1984
1985int ggml_blck_size(enum ggml_type type) {
1986 return type_traits[type].blck_size;

Callers

nothing calls this directly

Calls 2

ggml_type_sizeFunction · 0.70
ggml_blck_sizeFunction · 0.70

Tested by

no test coverage detected