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

Function ggml_mean

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

Source from the content-addressed store, hash-verified

2418// ggml_mean
2419
2420struct ggml_tensor * ggml_mean(
2421 struct ggml_context * ctx,
2422 struct ggml_tensor * a) {
2423 int64_t ne[4] = { 1, a->ne[1], a->ne[2], a->ne[3] };
2424 struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne);
2425
2426 result->op = GGML_OP_MEAN;
2427 result->src[0] = a;
2428
2429 return result;
2430}
2431
2432// ggml_argmax
2433

Callers 8

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