MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / llama_format_tensor_shape

Function llama_format_tensor_shape

src/llama-impl.cpp:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101std::string llama_format_tensor_shape(const std::vector<int64_t> & ne) {
102 char buf[256];
103 snprintf(buf, sizeof(buf), "%6" PRId64, ne.at(0));
104 for (size_t i = 1; i < ne.size(); i++) {
105 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ", %6" PRId64, ne.at(i));
106 }
107 return buf;
108}
109
110std::string llama_format_tensor_shape(const struct ggml_tensor * t) {
111 char buf[256];

Callers 3

llama_model_loaderMethod · 0.85
check_tensor_dimsMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected