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

Function ggml_element_size

ggml.c:2013–2015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2011}
2012
2013size_t ggml_element_size(const struct ggml_tensor * tensor) {
2014 return ggml_type_size(tensor->type);
2015}
2016
2017static inline bool ggml_is_scalar(const struct ggml_tensor * tensor) {
2018 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");

Callers 15

ggml_compute_backwardFunction · 0.70
llm_build_k_shiftFunction · 0.70
llm_build_kv_storeFunction · 0.70
llm_build_kqvFunction · 0.70
build_persimmonMethod · 0.70
build_stablelmMethod · 0.70
llama_build_graphFunction · 0.70
llama_set_state_dataFunction · 0.70
mainFunction · 0.50

Calls 1

ggml_type_sizeFunction · 0.70

Tested by 1

mainFunction · 0.40