| 18054 | } |
| 18055 | |
| 18056 | static 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 | |
| 18069 | static 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", |
no test coverage detected