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

Function ggml_element_size

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

Source from the content-addressed store, hash-verified

1318}
1319
1320size_t ggml_element_size(const struct ggml_tensor * tensor) {
1321 return ggml_type_size(tensor->type);
1322}
1323
1324bool ggml_is_scalar(const struct ggml_tensor * tensor) {
1325 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");

Callers 15

build_rope_2dMethod · 0.85
collect_imatrixMethod · 0.85
set_inputMethod · 0.85
build_rsMethod · 0.85
applyMethod · 0.85
llm_build_rwkv6qwen2Method · 0.85
build_rwkv6_time_mixMethod · 0.85
build_rwkv7_time_mixMethod · 0.85
llm_build_rwkv6Method · 0.85

Calls 1

ggml_type_sizeFunction · 0.85

Tested by 2

llm_build_kv_storeMethod · 0.68
llm_build_kqvMethod · 0.68