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

Function ggml_div_impl

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

Source from the content-addressed store, hash-verified

2186// ggml_div
2187
2188static struct ggml_tensor * ggml_div_impl(
2189 struct ggml_context * ctx,
2190 struct ggml_tensor * a,
2191 struct ggml_tensor * b,
2192 bool inplace) {
2193 GGML_ASSERT(ggml_can_repeat(b, a));
2194
2195 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
2196
2197 result->op = GGML_OP_DIV;
2198 result->src[0] = a;
2199 result->src[1] = b;
2200
2201 return result;
2202}
2203
2204struct ggml_tensor * ggml_div(
2205 struct ggml_context * ctx,

Callers 2

ggml_divFunction · 0.85
ggml_div_inplaceFunction · 0.85

Calls 3

ggml_can_repeatFunction · 0.85
ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85

Tested by

no test coverage detected