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

Function ggml_graph_dump_dot_node_edge

ggml.c:18056–18067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18054}
18055
18056static void ggml_graph_dump_dot_node_edge(FILE * fp, const struct ggml_cgraph * gb, struct ggml_tensor * node, struct ggml_tensor * parent, const char * label) {
18057 struct ggml_tensor * gparent = ggml_graph_get_parent(gb, node);
18058 struct ggml_tensor * gparent0 = ggml_graph_get_parent(gb, parent);
18059 fprintf(fp, " \"%p\":%s -> \"%p\":%s [ arrowhead = %s; style = %s; label = \"%s\"; ]\n",
18060 gparent0 ? (void *) gparent0 : (void *) parent,
18061 gparent0 ? "g" : "x",
18062 gparent ? (void *) gparent : (void *) node,
18063 gparent ? "g" : "x",
18064 gparent ? "empty" : "vee",
18065 gparent ? "dashed" : "solid",
18066 label);
18067}
18068
18069static void ggml_graph_dump_dot_leaf_edge(FILE * fp, struct ggml_tensor * node, struct ggml_tensor * parent, const char * label) {
18070 fprintf(fp, " \"%p\":%s -> \"%p\":%s [ label = \"%s\"; ]\n",

Callers 1

ggml_graph_dump_dotFunction · 0.70

Calls 2

fprintfFunction · 0.85
ggml_graph_get_parentFunction · 0.70

Tested by

no test coverage detected