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

Function common_ggml_ne_string

subprojects/llama.cpp/common/debug.cpp:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include <string>
7
8static std::string common_ggml_ne_string(const ggml_tensor * t) {
9 std::string str;
10 for (int i = 0; i < GGML_MAX_DIMS; ++i) {
11 str += std::to_string(t->ne[i]);
12 if (i + 1 < GGML_MAX_DIMS) {
13 str += ", ";
14 }
15 }
16 return str;
17}
18
19static float common_ggml_get_float_value(const uint8_t * data,
20 ggml_type type,

Callers 1

common_debug_cb_evalFunction · 0.85

Calls 1

to_stringFunction · 0.85

Tested by

no test coverage detected