MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / ggml_sub_impl

Function ggml_sub_impl

ggml/src/ggml.c:2193–2207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2191// ggml_sub
2192
2193static struct ggml_tensor * ggml_sub_impl(
2194 struct ggml_context * ctx,
2195 struct ggml_tensor * a,
2196 struct ggml_tensor * b,
2197 bool inplace) {
2198 GGML_ASSERT(ggml_can_repeat(b, a));
2199
2200 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
2201
2202 result->op = GGML_OP_SUB;
2203 result->src[0] = a;
2204 result->src[1] = b;
2205
2206 return result;
2207}
2208
2209struct ggml_tensor * ggml_sub(
2210 struct ggml_context * ctx,

Callers 3

ggml_subFunction · 0.85
ggml_sub_inplaceFunction · 0.85
ggml_sub_or_setFunction · 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