| 145 | } |
| 146 | |
| 147 | static void assign_names(ggml_context * ctx, const char * prefix = "x") { |
| 148 | int i = 0; |
| 149 | for (ggml_tensor * t = ggml_get_first_tensor(ctx); t; t = ggml_get_next_tensor(ctx, t)) { |
| 150 | ggml_format_name(t, "%s%d", prefix, i++); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | static int get_leaf_id(ggml_cgraph * graph, const char * tensor_name) { |
| 155 | for (int i = 0; i < graph->n_leafs; ++i) { |
no test coverage detected