| 2186 | // ggml_div |
| 2187 | |
| 2188 | static struct ggml_tensor * ggml_div_impl( |
| 2189 | struct ggml_context * ctx, |
| 2190 | struct ggml_tensor * a, |
| 2191 | struct ggml_tensor * b, |
| 2192 | bool inplace) { |
| 2193 | GGML_ASSERT(ggml_can_repeat(b, a)); |
| 2194 | |
| 2195 | struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); |
| 2196 | |
| 2197 | result->op = GGML_OP_DIV; |
| 2198 | result->src[0] = a; |
| 2199 | result->src[1] = b; |
| 2200 | |
| 2201 | return result; |
| 2202 | } |
| 2203 | |
| 2204 | struct ggml_tensor * ggml_div( |
| 2205 | struct ggml_context * ctx, |
no test coverage detected