| 2033 | } |
| 2034 | |
| 2035 | static inline bool ggml_can_mul_mat(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
| 2036 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
| 2037 | |
| 2038 | return (t0->ne[0] == t1->ne[0]) && |
| 2039 | (t1->ne[2]%t0->ne[2] == 0) && // verify t0 is broadcastable |
| 2040 | (t1->ne[3]%t0->ne[3] == 0); |
| 2041 | } |
| 2042 | |
| 2043 | static inline bool ggml_can_out_prod(const struct ggml_tensor * t0, const struct ggml_tensor * t1) { |
| 2044 | static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function"); |
no outgoing calls
no test coverage detected