| 185 | // correctness checks for result allocations |
| 186 | |
| 187 | static void check_all_allocated(ggml_cgraph * graph) { |
| 188 | for (int i = 0; i < ggml_graph_n_nodes(graph); ++i) { |
| 189 | ggml_tensor * t = ggml_graph_node(graph, i); |
| 190 | GGML_ASSERT(t->buffer != nullptr); |
| 191 | GGML_ASSERT(t->data != nullptr); |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | static void check_max_size(ggml_context * ctx) { |
| 196 | for (ggml_tensor * t = ggml_get_first_tensor(ctx); t; t = ggml_get_next_tensor(ctx, t)) { |
no test coverage detected