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

Function ggml_sum_rows

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

Source from the content-addressed store, hash-verified

2385// ggml_sum_rows
2386
2387struct ggml_tensor * ggml_sum_rows(
2388 struct ggml_context * ctx,
2389 struct ggml_tensor * a) {
2390 int64_t ne[GGML_MAX_DIMS] = { 1 };
2391 for (int i = 1; i < GGML_MAX_DIMS; ++i) {
2392 ne[i] = a->ne[i];
2393 }
2394
2395 struct ggml_tensor * result = ggml_new_tensor(ctx, a->type, GGML_MAX_DIMS, ne);
2396
2397 result->op = GGML_OP_SUM_ROWS;
2398 result->src[0] = a;
2399
2400 return result;
2401}
2402
2403// ggml_cumsum
2404

Callers 9

build_graph_piterFunction · 0.85
build_moe_ffnMethod · 0.85
build_rwkv7_time_mixMethod · 0.85
calc_magnitudeMethod · 0.85
gaussian_topkMethod · 0.85
build_graphMethod · 0.85
build_graphMethod · 0.85
ggml_vk_check_results_0Function · 0.85

Calls 1

ggml_new_tensorFunction · 0.85

Tested by 2

build_graphMethod · 0.68
build_graphMethod · 0.68