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

Function ggml_ne_string

smallthinker/examples/eval-callback/eval-callback.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19static std::string ggml_ne_string(const ggml_tensor * t) {
20 std::string str;
21 for (int i = 0; i < GGML_MAX_DIMS; ++i) {
22 str += std::to_string(t->ne[i]);
23 if (i + 1 < GGML_MAX_DIMS) {
24 str += ", ";
25 }
26 }
27 return str;
28}
29
30static void ggml_print_tensor(uint8_t * data, ggml_type type, const int64_t * ne, const size_t * nb, int64_t n) {
31 GGML_ASSERT(n > 0);

Callers 1

ggml_debugFunction · 0.70

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected