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

Function ggml_can_out_prod

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

Source from the content-addressed store, hash-verified

3243// ggml_out_prod
3244
3245static inline bool ggml_can_out_prod(const struct ggml_tensor * t0, const struct ggml_tensor * t1) {
3246 static_assert(GGML_MAX_DIMS == 4, "GGML_MAX_DIMS is not 4 - update this function");
3247
3248 return (t0->ne[1] == t1->ne[1]) &&
3249 (t1->ne[2]%t0->ne[2] == 0) && // verify t0 is broadcastable
3250 (t1->ne[3]%t0->ne[3] == 0);
3251}
3252
3253struct ggml_tensor * ggml_out_prod(
3254 struct ggml_context * ctx,

Callers 1

ggml_out_prodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected