| 2154 | // ggml_mul |
| 2155 | |
| 2156 | static struct ggml_tensor * ggml_mul_impl( |
| 2157 | struct ggml_context * ctx, |
| 2158 | struct ggml_tensor * a, |
| 2159 | struct ggml_tensor * b, |
| 2160 | bool inplace) { |
| 2161 | GGML_ASSERT(ggml_can_repeat(b, a)); |
| 2162 | |
| 2163 | struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a); |
| 2164 | |
| 2165 | result->op = GGML_OP_MUL; |
| 2166 | result->src[0] = a; |
| 2167 | result->src[1] = b; |
| 2168 | |
| 2169 | return result; |
| 2170 | } |
| 2171 | |
| 2172 | struct ggml_tensor * ggml_mul( |
| 2173 | struct ggml_context * ctx, |
no test coverage detected