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

Function ggml_group_norm_impl

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

Source from the content-addressed store, hash-verified

3100// ggml_group_norm
3101
3102static struct ggml_tensor * ggml_group_norm_impl(
3103 struct ggml_context * ctx,
3104 struct ggml_tensor * a,
3105 int n_groups,
3106 float eps,
3107 bool inplace) {
3108 struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
3109
3110 ggml_set_op_params_i32(result, 0, n_groups);
3111 ggml_set_op_params_f32(result, 1, eps);
3112
3113 result->op = GGML_OP_GROUP_NORM;
3114 result->src[0] = a;
3115
3116 return result;
3117}
3118
3119struct ggml_tensor * ggml_group_norm(
3120 struct ggml_context * ctx,

Callers 2

ggml_group_normFunction · 0.85
ggml_group_norm_inplaceFunction · 0.85

Calls 4

ggml_view_tensorFunction · 0.85
ggml_dup_tensorFunction · 0.85
ggml_set_op_params_i32Function · 0.85
ggml_set_op_params_f32Function · 0.85

Tested by

no test coverage detected