| 3100 | // ggml_group_norm |
| 3101 | |
| 3102 | static 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 | |
| 3119 | struct ggml_tensor * ggml_group_norm( |
| 3120 | struct ggml_context * ctx, |
no test coverage detected