MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / ggml_can_mul_mat

Function ggml_can_mul_mat

subprojects/llama.cpp/ggml/src/ggml.c:3168–3174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3166// ggml_mul_mat
3167
3168static 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
3176struct ggml_tensor * ggml_mul_mat(
3177 struct ggml_context * ctx,

Callers 3

ggml_mul_matFunction · 0.85
ggml_flash_attn_extFunction · 0.85
ggml_flash_attn_backFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected