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

Function ggml_graph_export_leaf

ggml.c:17513–17525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17511}
17512
17513static void ggml_graph_export_leaf(const struct ggml_tensor * tensor, FILE * fout) {
17514 const int64_t * ne = tensor->ne;
17515 const size_t * nb = tensor->nb;
17516
17517 fprintf(fout, "%-6s %-12s %8d %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %16zu %16zu %16zu %16zu %16p %32s\n",
17518 ggml_type_name(tensor->type),
17519 ggml_op_name (tensor->op),
17520 tensor->n_dims,
17521 ne[0], ne[1], ne[2], ne[3],
17522 nb[0], nb[1], nb[2], nb[3],
17523 tensor->data,
17524 tensor->name);
17525}
17526
17527static void ggml_graph_export_node(const struct ggml_tensor * tensor, const char * arg, FILE * fout) {
17528 const int64_t * ne = tensor->ne;

Callers 1

ggml_graph_exportFunction · 0.85

Calls 3

fprintfFunction · 0.85
ggml_type_nameFunction · 0.70
ggml_op_nameFunction · 0.70

Tested by

no test coverage detected