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

Function ggml_ne_string

smallthinker/tools/export-lora/export-lora.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static std::string ggml_ne_string(const ggml_tensor * t) {
39 std::string str;
40 for (int i = 0; i < GGML_MAX_DIMS; ++i) {
41 str += std::to_string(t->ne[i]);
42 if (i + 1 < GGML_MAX_DIMS) {
43 str += ", ";
44 }
45 }
46 return str;
47}
48
49static struct gguf_context * load_gguf(std::string & fname, struct ggml_context ** ctx_ggml) {
50 struct gguf_init_params params = {

Callers 2

copy_tensorMethod · 0.70
merge_tensorMethod · 0.70

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected