| 7076 | } |
| 7077 | |
| 7078 | struct ggml_cgraph * ggml_graph_dup(struct ggml_context * ctx, struct ggml_cgraph * cgraph, bool force_grads) { |
| 7079 | struct ggml_cgraph * result = ggml_new_graph_custom(ctx, cgraph->size, cgraph->grads || force_grads); |
| 7080 | ggml_graph_cpy(cgraph, result); |
| 7081 | return result; |
| 7082 | } |
| 7083 | |
| 7084 | struct ggml_tensor * ggml_set_zero(struct ggml_tensor * tensor) { |
| 7085 | if (ggml_is_empty(tensor)) { |
no test coverage detected