MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_row_size

Function ggml_row_size

subprojects/llama.cpp/ggml/src/ggml.c:1275–1278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1273}
1274
1275size_t ggml_row_size(enum ggml_type type, int64_t ne) {
1276 assert(ne % ggml_blck_size(type) == 0);
1277 return ggml_type_size(type)*ne/ggml_blck_size(type);
1278}
1279
1280double ggml_type_sizef(enum ggml_type type) {
1281 return ((double)(type_traits[type].type_size))/type_traits[type].blck_size;

Callers 15

build_vitMethod · 0.85
build_rope_2dMethod · 0.85
build_stackMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
buildMethod · 0.85
state_write_dataMethod · 0.85
state_read_dataMethod · 0.85

Calls 2

ggml_blck_sizeFunction · 0.85
ggml_type_sizeFunction · 0.85

Tested by 7

init_tensor_uniformFunction · 0.68
llm_build_kv_storeMethod · 0.68
llm_build_kqvMethod · 0.68
get_handcrafted_fileFunction · 0.68
mainFunction · 0.68