| 3166 | // ggml_mul_mat |
| 3167 | |
| 3168 | static inline bool ggml_can_mul_mat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
| 3169 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 3170 | |
| 3171 | return (t0->ne[0] == t1->ne[0]) && |
| 3172 | (t1->ne[2]%t0->ne[2] == 0) && // verify t0 is broadcastable |
| 3173 | (t1->ne[3]%t0->ne[3] == 0); |
| 3174 | } |
| 3175 | |
| 3176 | struct ggml_tensor * ggml_mul_mat( |
| 3177 | struct ggml_context * ctx, |
no outgoing calls
no test coverage detected