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

Function ggml_sum

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

Source from the content-addressed store, hash-verified

2372// ggml_sum
2373
2374struct ggml_tensor * ggml_sum(
2375 struct ggml_context * ctx,
2376 struct ggml_tensor * a) {
2377 struct ggml_tensor * result = ggml_new_tensor_1d(ctx, a->type, 1);
2378
2379 result->op = GGML_OP_SUM;
2380 result->src[0] = a;
2381
2382 return result;
2383}
2384
2385// ggml_sum_rows
2386

Callers 7

eval_gradMethod · 0.85
build_graphMethod · 0.85
ggml_opt_buildFunction · 0.85
ggml_vk_check_results_0Function · 0.85

Calls 1

ggml_new_tensor_1dFunction · 0.85

Tested by 2

eval_gradMethod · 0.68
build_graphMethod · 0.68