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

Function ggml_graph_export_node

ggml.c:17527–17540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
17529 const size_t * nb = tensor->nb;
17530
17531 fprintf(fout, "%-6s %-6s %-12s %8d %" PRId64 " %" PRId64 " %" PRId64 " %" PRId64 " %16zu %16zu %16zu %16zu %16p %32s\n",
17532 arg,
17533 ggml_type_name(tensor->type),
17534 ggml_op_name (tensor->op),
17535 tensor->n_dims,
17536 ne[0], ne[1], ne[2], ne[3],
17537 nb[0], nb[1], nb[2], nb[3],
17538 tensor->data,
17539 tensor->name);
17540}
17541
17542void ggml_graph_export(const struct ggml_cgraph * cgraph, const char * fname) {
17543 uint64_t size_eval = 0;

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