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

Function llama_format_tensor_shape

llama.cpp:1869–1876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1867}
1868
1869static std::string llama_format_tensor_shape(const std::vector<int64_t> & ne) {
1870 char buf[256];
1871 snprintf(buf, sizeof(buf), "%5" PRId64, ne.at(0));
1872 for (size_t i = 1; i < ne.size(); i++) {
1873 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ", %5" PRId64, ne.at(i));
1874 }
1875 return buf;
1876}
1877
1878static std::string llama_format_tensor_shape(const struct ggml_tensor * t) {
1879 char buf[256];

Callers 3

llama_model_loaderMethod · 0.70
create_tensorMethod · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected