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

Function ggml_mean

ggml/src/ggml.c:2489–2499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2487// ggml_mean
2488
2489struct ggml_tensor * ggml_mean(
2490 struct ggml_context * ctx,
2491 struct ggml_tensor * a) {
2492 int64_t ne[4] = { 1, a->ne[1], a->ne[2], a->ne[3] };
2493 struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne);
2494
2495 result->op = GGML_OP_MEAN;
2496 result->src[0] = a;
2497
2498 return result;
2499}
2500
2501// ggml_argmax
2502

Callers 10

layer_norm_channelsMethod · 0.85
convnext_grnMethod · 0.85
gaussian_topkMethod · 0.85
test_fill_leftover_spaceFunction · 0.85
test_merge_free_blockFunction · 0.85
build_graphMethod · 0.85
ggml_compute_backwardFunction · 0.85
ggml_vk_check_results_0Function · 0.85

Calls 1

ggml_new_tensorFunction · 0.85

Tested by 5

test_fill_leftover_spaceFunction · 0.68
test_merge_free_blockFunction · 0.68
build_graphMethod · 0.68